mirror of
https://github.com/neovim/neovim.git
synced 2026-04-14 19:46:10 +00:00
Problem: Since2f6d1d3c88, `apply_text_edits` unconditionally sets `buflisted=true`, causing spurious BufDelete events if plugins restore the original 'buflisted' state on unlisted buffers:65ef6cec1c/src/nvim/option.c (L2159-L2169)Solution: - Don't set 'buflisted' in `apply_text_edits`. Set it more narrowly, in `apply_workspace_edit` where the semantics requires affected buffers to be visible to the user. - Also skip setting 'buflisted' if it would not be changed, to avoid redundant `OptionSet` events. (cherry picked from commit6473d007e7)