]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.2136: :tab sbuffer may close old tabpage v9.1.2136
authorzeertzjq <zeertzjq@outlook.com>
Sat, 7 Feb 2026 10:20:51 +0000 (10:20 +0000)
committerChristian Brabandt <cb@256bit.org>
Sat, 7 Feb 2026 10:23:41 +0000 (10:23 +0000)
commit6da9f757c48ce87df381d726b165bed6fa301423
tree6810266f5c3e2db5fc89ab2e542fc47e5af9b96d
parent7ccb81bdb6c5454ff801be11082775ec82a96efc
patch 9.1.2136: :tab sbuffer may close old tabpage

Problem:  :tab sbuffer may close old tabpage if BufLeave autocommand
          splits window (after 9.1.0143).
Solution: Only close other windows if the buffer will be unloaded
          (zeertzjq).

related: neovim/neovim#37749
closes: #19352

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/version9.txt
src/buffer.c
src/testdir/test_autocmd.vim
src/testdir/test_buffer.vim
src/version.c