From 8d4088542bb210459633d0afb7be15f93c3d41c8 Mon Sep 17 00:00:00 2001 From: rxi Date: Mon, 27 Apr 2020 18:37:26 +0100 Subject: Updated spellcheck plugin: fixed active word check --- plugins/spellcheck.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/spellcheck.lua') 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 -- cgit v1.2.3