tweaks: simplify a bit of logic

master
Benno Schulenberg 2020-12-04 16:27:34 +01:00
parent c3900e90f0
commit 16dff06a4c
1 changed files with 2 additions and 2 deletions

View File

@ -408,8 +408,8 @@ void window_init(void)
edit = newwin(1, COLS, 0, 0);
bottomwin = newwin(1, COLS, LINES - 1, 0);
} else {
int toprows = (!ISSET(EMPTY_LINE) ? 1 : (LINES < 6) ? 1 : 2);
int bottomrows = (ISSET(NO_HELP) ? 1 : (LINES < 5) ? 1 : 3);
int toprows = ((ISSET(EMPTY_LINE) && LINES > 5) ? 2 : 1);
int bottomrows = ((ISSET(NO_HELP) || LINES < 5) ? 1 : 3);
editwinrows = LINES - toprows - bottomrows;