From 556dabb44975639de08ae338c66570ef6f636d3c Mon Sep 17 00:00:00 2001 From: Aviv Carmi Date: Wed, 19 Apr 2023 15:06:00 +0300 Subject: [PATCH] add exit call to fix empty space issue --- extensions/window/window_switcher.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/window/window_switcher.lua b/extensions/window/window_switcher.lua index 9561b44c9..e59182d23 100644 --- a/extensions/window/window_switcher.lua +++ b/extensions/window/window_switcher.lua @@ -241,7 +241,7 @@ local function show(self,dir) self.windows=windows end local nwindows=#windows or 0 - if nwindows==0 then self.log.i('no windows') return end + if nwindows==0 then exit(self) self.log.i('no windows') return end local selected=self.selected if not selected then -- fresh invocation, prep everything if nwindows>#drawings then -- need new drawings