diff options
| author | Maxime Coste <mawww@kakoune.org> | 2020-05-14 09:11:17 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-14 09:11:17 +1000 |
| commit | b6041e60ac513b8ea9fca8ef71d4aa5cca4c4f25 (patch) | |
| tree | 60d3a237c592d855ce8cbded51618c6726f3ba05 | |
| parent | 151eb3299d3bf3c966eaa1ff689e0866b7e08ef6 (diff) | |
| parent | 9bc6bddcaccbe152007c72f6795c19bf6987ea55 (diff) | |
Merge pull request #3469 from lenormf/patch-7
rc spell: Fix off-by-one highlighting glitch
| -rw-r--r-- | rc/tools/spell.kak | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/tools/spell.kak b/rc/tools/spell.kak index d062f3e4..07318250 100644 --- a/rc/tools/spell.kak +++ b/rc/tools/spell.kak @@ -58,7 +58,7 @@ define-command -params ..1 -docstring %{ } else if (/^[#&]/) { - word_len = length($2) + word_len = length($2) - 1 word_pos = substr($0, 1, 1) == "&" ? substr($4, 1, length($4) - 1) : $3; regions = regions " " line_num "." word_pos "+" word_len "|Error" } |
