]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1393: missing test for switching buffers and reusing curbuf v9.1.1393
authorSean Dewar <6256228+seandewar@users.noreply.github.com>
Thu, 15 May 2025 17:59:37 +0000 (19:59 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 15 May 2025 17:59:37 +0000 (19:59 +0200)
commit31be82e66d412000f1d964a36bb8a03d40eaaeac
treeace5f96e9197f51927175cd94e993c983ef2f7bf
parentc49cb93a86216eb3a9e5816227e242d54b72bdf8
patch 9.1.1393: missing test for switching buffers and reusing curbuf

Problem:  The check in buf_freeall that restores curwin subtly prevents
          leaving an unloaded buffer in a window when reusing curbuf, if
          autocommands switch to a different buffer.
Solution: Add a test case that covers this. Also ensure splitting isn't
          possible, as that could do the same (Sean Dewar)

closes: #17325

Signed-off-by: Sean Dewar <6256228+seandewar@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/buffer.c
src/testdir/test_autocmd.vim
src/version.c