diff options
author | Florian Fischer <florian.fl.fischer@fau.de> | 2021-03-25 11:11:57 +0100 |
---|---|---|
committer | Florian Fischer <florian.fl.fischer@fau.de> | 2021-03-25 11:11:57 +0100 |
commit | 377ff0f4cb7015db52303d64fb4536fb94a67900 (patch) | |
tree | 779ed80568df5e84c04851c42e1052de25360b8c | |
parent | ada0b6ce8a1ed3f5f079cb6e12ff800d511fe65f (diff) | |
download | vis-spellcheck-377ff0f4cb7015db52303d64fb4536fb94a67900.tar.gz |
fix off-by-one highlighting in non-syntax aware mode
-rw-r--r-- | spellcheck.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spellcheck.lua b/spellcheck.lua index a96ba6a..0926032 100644 --- a/spellcheck.lua +++ b/spellcheck.lua @@ -171,7 +171,7 @@ vis.events.subscribe(vis.events.WIN_HIGHLIGHT, function(win) end for _, start, finish in typo_iter(viewport_text, typos, ignored) do - win:style(spellcheck.typo_style_id, viewport.start + start - 1, viewport.start + finish) + win:style(spellcheck.typo_style_id, viewport.start + start - 1, viewport.start + finish - 1) end last_viewport = viewport_text |