diff options
| -rw-r--r-- | spellcheck.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spellcheck.lua b/spellcheck.lua index fe7d8a3..f8c4e8e 100644 --- a/spellcheck.lua +++ b/spellcheck.lua @@ -205,7 +205,7 @@ local wrap_lex_func = function(old_lex_func) table.insert(new_tokens, vis.lexers.ERROR) table.insert(new_tokens, typo_end + 1) end - until(not token_end or token_end > typo_end) + until(not token_end or token_end >= typo_end) end -- add tokens left after we handled all typos |
