Merge pull request #3469 from lenormf/patch-7
rc spell: Fix off-by-one highlighting glitch
This commit is contained in:
commit
b6041e60ac
|
@ -58,7 +58,7 @@ define-command -params ..1 -docstring %{
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (/^[#&]/) {
|
else if (/^[#&]/) {
|
||||||
word_len = length($2)
|
word_len = length($2) - 1
|
||||||
word_pos = substr($0, 1, 1) == "&" ? substr($4, 1, length($4) - 1) : $3;
|
word_pos = substr($0, 1, 1) == "&" ? substr($4, 1, length($4) - 1) : $3;
|
||||||
regions = regions " " line_num "." word_pos "+" word_len "|Error"
|
regions = regions " " line_num "." word_pos "+" word_len "|Error"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user