Commit 8540f4f
Don't highlight if range end is character 0
This is helpful for ranges such as
`{start:{line:5,character:0},end:{line:6,character:0}}`
One reason a language server may use that type of range is
because it doesn't guarantee that it will keep the file contents in memory,
and doesn't track columns.
I do this in https://github.com/tysonandre/languageserver-phan-neovim
If I set up `highlight link ALEWarning todo` (etc):
- With this patch, the background of the characters in line 5
are highlighted, as I'd expect.
- Without this patch, the whole line 5 is highlighted,
plus the first character of line 6.
I'd only expect highlights in line 6 for `end:{line:6,character:1}`1 parent c851073 commit 8540f4f
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
624 | 624 | | |
625 | 625 | | |
626 | 626 | | |
627 | | - | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
628 | 632 | | |
629 | 633 | | |
630 | 634 | | |
| |||
0 commit comments