Commit Diff


commit - 5f2dc0bd6accb5bfbf7a3d80ce601b14f291a3ac
commit + b3884fbee299f6fe654945d9e604f954f3e3c7e1
blob - 17e36287d7b7a484f11064646e8f12aadc16c1c6
blob + e1aaadd77b892a565108349970e26450e6f63462
--- ui.c
+++ ui.c
@@ -311,25 +311,28 @@ static void
 handle_resize_nodelay(int s, short ev, void *d)
 {
 	struct tab	*tab;
+	int		 lines;
 
 	endwin();
 	refresh();
 	clear();
 
+	lines = LINES;
+
 	/* move and resize the windows, in reverse order! */
 
-	mvwin(echoarea, LINES-1, 0);
+	mvwin(echoarea, --lines, 0);
 	wresize(echoarea, 1, COLS);
 
-	mvwin(modeline, LINES-2, 0);
+	mvwin(modeline, --lines, 0);
 	wresize(modeline, 1, COLS);
 
-	body_lines = LINES-3;
+	body_lines = --lines;
 	body_cols = COLS;
 
 	if (side_window) {
 		help_cols = 0.3 * COLS;
-		help_lines = LINES-3;
+		help_lines = lines;
 		mvwin(help, 1, 0);
 		wresize(help, help_lines, help_cols);