mirror of
https://github.com/neovim/neovim.git
synced 2026-04-01 21:32:10 +00:00
Problem: w_locked can be bypassed when recursively set if not restored
to its prior value.
Solution: Rather than save/restore everywhere, just make it a count,
like other locks (Sean Dewar)
Requires the previous commit, otherwise b_nwindows will be wrong in
tests, which causes a bunch of weird failures.
closes: vim/vim#19728
7cb43f286e
Co-authored-by: Sean Dewar <6256228+seandewar@users.noreply.github.com>