Skip to content

Commit

Permalink
add exit call to fix empty space issue
Browse files Browse the repository at this point in the history
  • Loading branch information
avivcarmis authored Apr 19, 2023
1 parent 1973483 commit 556dabb
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 556dabb

Please sign in to comment.