Skip to content

Commit

Permalink
fix(fzf): only apply offset if menu has no border
Browse files Browse the repository at this point in the history
  • Loading branch information
willothy committed Sep 5, 2023
1 parent 93ee5ea commit 2ee6c78
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lua/dropbar/menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -757,11 +757,17 @@ function dropbar_menu_t:fuzzy_find_open(opts)
vim.bo[buf].filetype = 'dropbar_menu_fzf'

local col_offset = 0
local function has_border(border)
return border and border ~= 'none'
end
if
opts.win_configs
and (opts.win_configs.border == 'none' or opts.win_configs.border == false)
and (
has_border(opts.win_configs.border)
and not has_border(self._win_configs.border)
)
then
col_offset = 0
col_offset = 1
end

local win = vim.api.nvim_open_win(
Expand Down

0 comments on commit 2ee6c78

Please sign in to comment.