diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-03-21 11:02:29 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-03-22 18:42:58 +0100 |
commit | 53ccd07fa1c0bfcb79ca11bd873ea12f4dc12f4a (patch) | |
tree | 12280d1ac92ac758aa3be2cdff38a81fe2dc1721 /src/nvim/buffer.c | |
parent | b0e34497b357462024c07d506a16426d58475497 (diff) | |
download | rneovim-53ccd07fa1c0bfcb79ca11bd873ea12f4dc12f4a.tar.gz rneovim-53ccd07fa1c0bfcb79ca11bd873ea12f4dc12f4a.tar.bz2 rneovim-53ccd07fa1c0bfcb79ca11bd873ea12f4dc12f4a.zip |
lint
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 7429e8628e..3c416c157f 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -4518,8 +4518,8 @@ void ex_buffer_all(exarg_T *eap) ? wp->w_height + wp->w_status_height < Rows - p_ch - tabline_height() : wp->w_width != Columns) - || (had_tab > 0 && wp != firstwin) - ) && firstwin != lastwin + || (had_tab > 0 && wp != firstwin)) + && firstwin != lastwin && !(wp->w_closing || wp->w_buffer->b_locked > 0) ) { win_close(wp, FALSE); |