aboutsummaryrefslogtreecommitdiff
path: root/scripts/lintcommit.lua
diff options
context:
space:
mode:
authorglepnir <glephunter@gmail.com>2026-04-09 05:10:52 +0800
committerGitHub <noreply@github.com>2026-04-08 17:10:52 -0400
commit6473d007e7b9f7f14b06190117f0bb0269fa938c (patch)
tree3b09a91205da17ec6de947234f7a98b991a31ffb /scripts/lintcommit.lua
parent1ff1973269594254900fbce40fd35c3024d9ed3d (diff)
downloadrneovim-6473d007e7b9f7f14b06190117f0bb0269fa938c.tar.gz
rneovim-6473d007e7b9f7f14b06190117f0bb0269fa938c.tar.bz2
rneovim-6473d007e7b9f7f14b06190117f0bb0269fa938c.zip
fix(lsp): apply_text_edits causes unwanted BufDelete events #38778
Problem: Since 2f6d1d3c887a87d9402137425b418dd12a904aac, `apply_text_edits` unconditionally sets `buflisted=true`, causing spurious BufDelete events if plugins restore the original 'buflisted' state on unlisted buffers: https://github.com/neovim/neovim/blob/65ef6cec1cb766334c59d3255595dfe523b11020/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.
Diffstat (limited to 'scripts/lintcommit.lua')
0 files changed, 0 insertions, 0 deletions