diff options
author | ckelsel <ckelsel@hotmail.com> | 2017-07-23 11:11:56 +0800 |
---|---|---|
committer | ckelsel <ckelsel@hotmail.com> | 2017-07-23 11:25:39 +0800 |
commit | b656159fcfded40839c222ae1c4e86873c82f295 (patch) | |
tree | 5bb84eb717a6ebcdc828034fa2b10e2ec28086a8 /src/nvim/ex_docmd.c | |
parent | ad07e9c7fcabeb991f0849c9e11b5b225cf470fd (diff) | |
download | rneovim-b656159fcfded40839c222ae1c4e86873c82f295.tar.gz rneovim-b656159fcfded40839c222ae1c4e86873c82f295.tar.bz2 rneovim-b656159fcfded40839c222ae1c4e86873c82f295.zip |
vim-patch:8.0.0073
Problem: More comparisons between firstwin and lastwin.
Solution: Use ONE_WINDOW for consistency. (Hirohito Higashi)
https://github.com/vim/vim/commit/459ca563128f2edb7e3bb190090bbb755a56dd55
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 0a44392080..62fa26be3c 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -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); } |