diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-11-10 18:16:33 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-11-10 18:16:33 +0100 |
commit | 459ca563128f2edb7e3bb190090bbb755a56dd55 (patch) | |
tree | 655c20d3f6b48349cb54d54c2812cfdbac3175fc /src/ex_docmd.c | |
parent | 38bc49563782ee1cb91660e58acf1afe1a31020a (diff) | |
download | vim-459ca563128f2edb7e3bb190090bbb755a56dd55.zip |
patch 8.0.0073
Problem: More comparisons between firstwin and lastwin.
Solution: Use ONE_WINDOW for consistency. (Hirohito Higashi)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index dcb5cfe04..9ad7d77c5 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -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; |