aboutsummaryrefslogtreecommitdiff
path: root/plugins/spellcheck.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/spellcheck.lua')
-rw-r--r--plugins/spellcheck.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/spellcheck.lua b/plugins/spellcheck.lua
index 33754ac..3ac4c02 100644
--- a/plugins/spellcheck.lua
+++ b/plugins/spellcheck.lua
@@ -38,7 +38,9 @@ end
local function active_word(doc, line, tail)
local l, c = doc:get_selection()
- return l == line and c == tail and system.get_time() - last_input_time < 0.5
+ return l == line and c == tail
+ and doc == core.active_view.doc
+ and system.get_time() - last_input_time < 0.5
end