Closed vigoux closed 4 years ago
Using the same method as in here https://github.com/neovim/neovim/issues/12645, I notice that old_byte_size
is invalid here too.
Little correction, it goes well when hitting o
but not when A<CR>
.
Now that bytetrack is merged, I looked at the byte events, and we received wrong byte events in this case.
nvim --version
:NVIM v0.5.0-649-gc42fdc036
vim -u DEFAULTS
(version: ) behaves differently? Not applicable$TERM
:st-256color
Steps to reproduce using
nvim -u NORC
Setup treesitter highlighting for C.
set formatoptions+=ro
Go to a comment and hitA<Enter>
oro
.Actual behaviour
The highlighting is wrong, that is : the freshly added comment is not highlighted, and the word below is highlighted.
Expected behaviour
Everything should be fine.
@bfredl I think this is related to the byte interface too