vim-patch:8.0.0073

Problem:    More comparisons between firstwin and lastwin.
Solution:   Use ONE_WINDOW for consistency. (Hirohito Higashi)

459ca56312
This commit is contained in:
ckelsel
2017-07-23 11:11:56 +08:00
parent ad07e9c7fc
commit b656159fcf
6 changed files with 16 additions and 16 deletions

View File

@@ -6176,9 +6176,9 @@ void 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);
}