tweaks: simplify a bit of logic
parent
c3900e90f0
commit
16dff06a4c
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue