mirror of
https://github.com/neovim/neovim.git
synced 2026-04-30 11:14:10 +00:00
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: vim/vim#17325
31be82e66d
Co-authored-by: Sean Dewar <6256228+seandewar@users.noreply.github.com>