diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-07-15 14:50:10 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-07-15 15:21:39 +0800 |
commit | 7b5b7b3cc6306e9313dcf677f212cb132bd38aa0 (patch) | |
tree | 86affd4c94975a370bebbff9f119db2ae785bb8e /src/nvim/buffer.c | |
parent | 9777907467b29e890556db287b6a9995c0024896 (diff) | |
download | rneovim-7b5b7b3cc6306e9313dcf677f212cb132bd38aa0.tar.gz rneovim-7b5b7b3cc6306e9313dcf677f212cb132bd38aa0.tar.bz2 rneovim-7b5b7b3cc6306e9313dcf677f212cb132bd38aa0.zip |
vim-patch:8.0.1118: FEAT_WINDOWS adds a lot of #ifdefs
Problem: FEAT_WINDOWS adds a lot of #ifdefs while it is nearly always
enabled and only adds 7% to the binary size of the tiny build.
Solution: Graduate FEAT_WINDOWS.
https://github.com/vim/vim/commit/4033c55eca575777718c0701e26635a0cc47d907
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 69aaee4f9b..ee3a8c26b8 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -443,6 +443,7 @@ bool close_buffer(win_T *win, buf_T *buf, int action, bool abort_if_last, bool i return false; } + // check no autocommands closed the window if (win != NULL // Avoid bogus clang warning. && win_valid_any_tab(win)) { // Set b_last_cursor when closing the last window for the buffer. |