startup: always initialize 'margin' and 'editwincols'

This fixes https://savannah.gnu.org/bugs/?49428.
master
Benno Schulenberg 2016-10-24 17:38:24 +02:00
parent 702b09c859
commit b38cbfe173
1 changed files with 4 additions and 2 deletions

View File

@ -2706,11 +2706,13 @@ int main(int argc, char **argv)
/* The margin has changed -- schedule a full refresh. */ /* The margin has changed -- schedule a full refresh. */
refresh_needed = TRUE; refresh_needed = TRUE;
} }
} else { } else
#endif
{
margin = 0; margin = 0;
editwincols = COLS; editwincols = COLS;
} }
#endif
if (currmenu != MMAIN) if (currmenu != MMAIN)
display_main_list(); display_main_list();