Skip to content

Commit

Permalink
fix(bar): potential bug in the return value of dropbar_t:pick_mode_wr…
Browse files Browse the repository at this point in the history
…ap()
  • Loading branch information
bekaboo committed Sep 3, 2023
1 parent 28436bf commit 648a19c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/dropbar/bar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -558,9 +558,9 @@ end
function dropbar_t:pick_mode_wrap(fn, ...)
local pick_mode = self.in_pick_mode
self.in_pick_mode = true
local result = fn(...)
local results = { fn(...) }
self.in_pick_mode = pick_mode
return result
return unpack(results)
end

---Pick a component from dropbar
Expand Down

0 comments on commit 648a19c

Please sign in to comment.