From f65b161ab4183c9cdec5b32f74e82661156836b1 Mon Sep 17 00:00:00 2001 From: Xinhao Yuan Date: Fri, 12 Jul 2019 16:00:12 -0400 Subject: [PATCH] minor fix --- editor.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor.lua b/editor.lua index 1a1dab5..e39dcf2 100644 --- a/editor.lua +++ b/editor.lua @@ -687,7 +687,7 @@ local function create(data) timeout = 1, autostart = true, singleshot = true, - callback = cleanup + callback = cleanup, } else cleanup() @@ -698,10 +698,10 @@ local function create(data) if not ok then print("Getting error in keygrabber: " .. err) to_exit = true + cleanup() end if to_exit then - cleanup() keygrabber.stop(kg) end end