Skip to content

Commit

Permalink
fix(menu): ensure win key is nil if win_configs.relative ~= "win"
Browse files Browse the repository at this point in the history
  • Loading branch information
willothy committed Sep 25, 2023
1 parent 8da1555 commit 9e83cd7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/dropbar/menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,10 @@ function dropbar_menu_t:open_win()
end
self.is_opened = true

if self._win_configs.relative ~= 'win' then
self._win_configs.win = nil
end

self.win = vim.api.nvim_open_win(self.buf, true, self._win_configs)
vim.wo[self.win].scrolloff = 0
vim.wo[self.win].sidescrolloff = 0
Expand Down

0 comments on commit 9e83cd7

Please sign in to comment.