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/buffer.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/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index efb8af50a4..f5d8b6ad30 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -1203,7 +1203,7 @@ do_buffer ( */ while (buf == curbuf && !(curwin->w_closing || curwin->w_buffer->b_locked > 0) - && (firstwin != lastwin || first_tabpage->tp_next != NULL)) { + && (!ONE_WINDOW || first_tabpage->tp_next != NULL)) { if (win_close(curwin, FALSE) == FAIL) break; } @@ -4593,7 +4593,7 @@ void ex_buffer_all(exarg_T *eap) - tabline_height() : wp->w_width != Columns) || (had_tab > 0 && wp != firstwin)) - && firstwin != lastwin + && !ONE_WINDOW && !(wp->w_closing || wp->w_buffer->b_locked > 0) ) { win_close(wp, FALSE); |