Following up on my comment here, it seems unnecessary to check b_locked_split when "split-moving" windows. It looks like the flag exists to stop new views into a buffer being created while it's closing (which can result in windows into a freed buffer remaining), but split-moving doesn't result in any new views into a buffer, unlike regular splitting.
The doc comment for b_locked_split also seems to support this:
https://github.com/vim/vim/blob/0c98a71236e6eca983fed5d903d07bd53190d16b/src/structs.h#L3002-L3003
So, continue to check split_disallowed when split-moving (it looks possibly relevant), but add a test to check that split-moving is OK when b_locked_split is set (I've made sure it crashes Vim if the b_locked_split check is reverted for regular splitting).
https://github.com/vim/vim/pull/14109
(3 files)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
actually, it seems to be a different issue (unrelated to 9.1.0143 or the issue it fixes); it seems close_buffer and its callers don't consider that autocmds can make another window view a buffer that's being wiped, without causing b->b_nwindows > 1.
Yeah the patch I made only addresses BufLeave autocommands, however the same can probably happen for other autocommands. We should try to make this more central.
Thanks
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
this has stalled, so closing
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
No problem. I may revisit later as the b_nwindows bug that blocked this was likely fixed in #19728, but no ETA as I'm currently largely away from the computer due to an emergency. Best wishes in the meantime to all!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()