tabonly
endfunc
+func Test_win_equal_last_status()
+ let save_lines = &lines
+ set lines=20
+ set splitbelow
+ set laststatus=0
+
+ split | split | quit
+ call assert_equal(winheight(1), winheight(2))
+
+ let &lines = save_lines
+ set splitbelow&
+ set laststatus&
+endfunc
+
+
" vim: shiftwidth=2 sts=2 expandtab
// using the window.
check_cursor();
}
+
+ /*
+ * If last window has a status line now and we don't want one, remove the
+ * status line. Do this before win_equal(), because it may change the
+ * height of a window
+ */
+ last_status(FALSE);
+
if (p_ea && (*p_ead == 'b' || *p_ead == dir))
// If the frame of the closed window contains the new current window,
// only resize that frame. Otherwise resize all windows.
--dont_parse_messages;
#endif
- /*
- * If last window has a status line now and we don't want one,
- * remove the status line.
- */
- last_status(FALSE);
-
// After closing the help window, try restoring the window layout from
// before it was opened.
if (help_window)