diff --git a/src/nano.c b/src/nano.c index bf60ad9a..c96eb0ee 100644 --- a/src/nano.c +++ b/src/nano.c @@ -420,8 +420,8 @@ void window_init(void) edit = newwin(editwinrows, COLS, 0, 0); bottomwin = newwin(1, COLS, LINES - 1, 0); } else { - int toprows = ((ISSET(EMPTY_LINE) && LINES > 5) ? 2 : 1); - int bottomrows = ((ISSET(NO_HELP) || LINES < 5) ? 1 : 3); + int toprows = ((ISSET(EMPTY_LINE) && LINES > 6) ? 2 : 1); + int bottomrows = ((ISSET(NO_HELP) || LINES < 6) ? 1 : 3); #ifndef NANO_TINY if (ISSET(MINIBAR) || ISSET(ZERO)) diff --git a/src/winio.c b/src/winio.c index 20646267..58979981 100644 --- a/src/winio.c +++ b/src/winio.c @@ -2391,7 +2391,7 @@ void bottombars(int menu) /* Set the global variable to the given menu. */ currmenu = menu; - if (ISSET(NO_HELP) || LINES < 5) + if (ISSET(NO_HELP) || LINES < 6) return; /* Determine how many shortcuts must be shown. */