Merge pull request #3469 from lenormf/patch-7

rc spell: Fix off-by-one highlighting glitch
This commit is contained in:
Maxime Coste 2020-05-14 09:11:17 +10:00 committed by GitHub
commit b6041e60ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"
}