]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1773: Crash in BufLeave after BufUnload closes other windows v9.1.1773
authorzeertzjq <zeertzjq@outlook.com>
Thu, 18 Sep 2025 20:05:19 +0000 (20:05 +0000)
committerChristian Brabandt <cb@256bit.org>
Thu, 18 Sep 2025 20:05:19 +0000 (20:05 +0000)
commit0c70820015c7a37425c07bf30ad277ee2656d496
treee5edcb3e9f21653e2ec99ad784eea662ea60f873
parent86e8e909f2e8cc1f851b4b62c3060c86c1afae65
patch 9.1.1773: Crash in BufLeave after BufUnload closes other windows

Problem:  Crash in BufLeave/WinLeave/TabLeave when closing window after
          BufUnload closes all other windows in the tab page.
Solution: Avoid duplicate BufLeave/WinLeave events. Trigger TabLeave
          before removing the buffer (zeertzjq).

related: #14166
related: neovim/neovim#33603
closes: #18330

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_autocmd.vim
src/version.c
src/window.c