0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.0.0073

Problem:    More comparisons between firstwin and lastwin.
Solution:   Use ONE_WINDOW for consistency. (Hirohito Higashi)
This commit is contained in:
Bram Moolenaar
2016-11-10 18:16:33 +01:00
parent 38bc495637
commit 459ca56312
6 changed files with 16 additions and 14 deletions

View File

@@ -7488,9 +7488,9 @@ tabpage_close(int forceit)
{
/* First close all the windows but the current one. If that worked then
* close the last window in this tab, that will close it. */
if (lastwin != firstwin)
if (!ONE_WINDOW)
close_others(TRUE, forceit);
if (lastwin == firstwin)
if (ONE_WINDOW)
ex_win_close(forceit, curwin, NULL);
# ifdef FEAT_GUI
need_mouse_correct = TRUE;