diff options
| author | Frank LENORMAND <1379068+lenormf@users.noreply.github.com> | 2020-05-07 10:40:25 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-07 10:40:25 +0000 |
| commit | 9bc6bddcaccbe152007c72f6795c19bf6987ea55 (patch) | |
| tree | e742698fa31a1898c71c4d0b4912e3bc730457e1 | |
| parent | 2fca4e564304ee69b33711084ceeefae397619cd (diff) | |
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" } |
