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 d569efc..54cffc4 100644 --- a/spellcheck.lua +++ b/spellcheck.lua @@ -115,7 +115,7 @@ vis:map(vis.modes.NORMAL, "<C-w>w", function(keys) f:close() -- trim correction correction = correction:match("^%s*(.-)%s*$") - if correction then + if correction ~= "" then win.file:delete(range) win.file:insert(range.start, correction) end |
