rc spell: Fix off-by-one highlighting glitch
This commit is contained in:
parent
2fca4e5643
commit
9bc6bddcac
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user