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