From 027142aa2deb22933ff5ebe3af7ccef5e770019d Mon Sep 17 00:00:00 2001 From: Aviv Carmi Date: Sun, 10 Dec 2023 18:53:27 +0200 Subject: [PATCH] add exit call to fix empty space issue (#3466) --- 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