Skip to content

Commit

Permalink
fix(menu): has_bottom_border is wrong when border == { "" }
Browse files Browse the repository at this point in the history
  • Loading branch information
bekaboo committed Jan 24, 2024
1 parent eb3c3d8 commit bad67c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/dropbar/menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -951,8 +951,8 @@ function dropbar_menu_t:fuzzy_find_open(opts)
local len_border = #border
has_left_border = border[len_border] ~= ''
has_bottom_border = len_border == 1 and border[1] ~= ''
or len_border <= 4 and border[2] ~= ''
or border[8] ~= ''
or (len_border == 2 or len_border == 4) and border[2] ~= ''
or len_border == 8 and border[8] ~= ''
end

-- make sure that fzf window aligns well with menu window
Expand Down

0 comments on commit bad67c3

Please sign in to comment.