From 9bc6bddcaccbe152007c72f6795c19bf6987ea55 Mon Sep 17 00:00:00 2001 From: Frank LENORMAND <1379068+lenormf@users.noreply.github.com> Date: Thu, 7 May 2020 10:40:25 +0000 Subject: [PATCH] rc spell: Fix off-by-one highlighting glitch --- rc/tools/spell.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" }