diff options
Diffstat (limited to 'spellcheck.lua')
-rw-r--r-- | spellcheck.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spellcheck.lua b/spellcheck.lua index 3d2888b..de04cea 100644 --- a/spellcheck.lua +++ b/spellcheck.lua @@ -86,7 +86,7 @@ local function typo_iter(text, typos, ignored) typo = unfiltered_iterator(iter_state) until(not typo or not ignored[typo]) - if typo then + if typo and typo ~= "" then -- to prevent typos from being found in correct words before them -- ("stuff stuf", "broken ok", ...) -- we match typos only when they are enclosed in non-letter characters. |