mirror of
https://github.com/neovim/neovim.git
synced 2026-01-16 09:57:00 +00:00
Problem: A BufAdd autocommand may cause alist_add() to use freed
memory, this is caused by the w_locked variable unset too
early (henices)
Solution: in trigger_undo_ftplugin() only set w_locked to false, if it
was false when calling the function.
related: v9.1.0678
closes: vim/vim#19023
9266a2a197
Co-authored-by: Christian Brabandt <cb@256bit.org>