diff --git a/lua/dropbar/menu.lua b/lua/dropbar/menu.lua index 118c6ed7..1adbb865 100644 --- a/lua/dropbar/menu.lua +++ b/lua/dropbar/menu.lua @@ -535,7 +535,7 @@ function dropbar_menu_t:update_scrollbar() local thumb_height = math.max(1, math.floor(win_height ^ 2 / buf_height)) local offset = math.min( win_height - thumb_height, - math.floor(win_height * topline / buf_height) + math.floor((win_height * topline / buf_height) + 0.5) ) if self.scrollbar and vim.api.nvim_win_is_valid(self.scrollbar.thumb) then