Skip to content

Commit

Permalink
add exit call to fix empty space issue (#3466)
Browse files Browse the repository at this point in the history
  • Loading branch information
avivcarmis committed Dec 10, 2023
1 parent f2af17b commit 027142a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/window/window_switcher.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 027142a

Please sign in to comment.