I'm not very skilled with this kind of things, so I apologize in advance.
It looks like there might be an off-by-one error when returning textDocument/documentSymbol selectionRange for a heading that ends with an emoji. This was originally reported here: folke/snacks.nvim#2704.
For a markdown file like:
I would expect the second heading to have the following selection range:
"selectionRange": {
"start": { "line": 1, "character": 0 },
"end": { "line": 1, "character": 5 }
},
However, the actual result appears to be "character": 6 for the end position.
Could you please confirm whether this is a valid issue?
I'm not very skilled with this kind of things, so I apologize in advance.
It looks like there might be an off-by-one error when returning
textDocument/documentSymbolselectionRangefor a heading that ends with an emoji. This was originally reported here: folke/snacks.nvim#2704.For a markdown file like:
I would expect the second heading to have the following selection range:
However, the actual result appears to be
"character": 6for the end position.Could you please confirm whether this is a valid issue?