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/buffer.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/buffer.c')
-rw-r--r-- | src/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c index 8b1bceb25..e5d2dde25 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -1412,7 +1412,7 @@ do_buffer( # ifdef FEAT_AUTOCMD && !(curwin->w_closing || curwin->w_buffer->b_locked > 0) # endif - && (firstwin != lastwin || first_tabpage->tp_next != NULL)) + && (!ONE_WINDOW || first_tabpage->tp_next != NULL)) { if (win_close(curwin, FALSE) == FAIL) break; @@ -5140,7 +5140,7 @@ ex_buffer_all(exarg_T *eap) : wp->w_width != Columns) || (had_tab > 0 && wp != firstwin) #endif - ) && firstwin != lastwin + ) && !ONE_WINDOW #ifdef FEAT_AUTOCMD && !(wp->w_closing || wp->w_buffer->b_locked > 0) #endif |