Open g-cassie opened 2 months ago
Note that the c
onfirm is necessary to trigger this, as is accepting both substitutions (one n
in either position breaks the reproducer, as does selecting a
ll).
CC @famiu as our command preview expert.
CC @famiu as our command preview expert.
I did make some changes to how TS highlights are done during the inccommand refactor, I'm assuming that may be the reason behind this behavior. I will look into this once I'm done with work on options.
Problem
Given the following lua file:
If you do
%s/attribute/attr/gc
, confirm both changes and then pressu
ndo, the tree sitter parsing gets out of sync.cc @gpanders and @clason
Steps to reproduce
nvim --clean
:hi @boolean guifg=red
Paste in these file contents:
:%s/attribute/attr/gc
y
y
u
Expected behavior
false
should be formatted in red andattribute2
formatted in grey.Neovim version (nvim -v)
0.10.1
Vim (not Nvim) behaves the same?
n/a
Operating system/version
macos 14.6
Terminal name/version
ghostty fcb8b040
$TERM environment variable
xterm-ghostty
Installation
homebrew