fix: handle winborder in neovim-0.11 (#2150)

This commit is contained in:
emmanueltouzery
2025-04-13 05:17:15 +02:00
committed by GitHub
parent 059e89495b
commit 30d2593272

View File

@@ -145,6 +145,7 @@ window.update = function(self)
row = info.row,
col = info.col + info.width - info.scrollbar_offset, -- info.col was already contained the scrollbar offset.
zindex = (self.style.zindex and (self.style.zindex + 1) or 1),
border = "none",
}
if self.sbar_win and vim.api.nvim_win_is_valid(self.sbar_win) then
vim.api.nvim_win_set_config(self.sbar_win, style)
@@ -176,6 +177,7 @@ window.update = function(self)
row = info.row + thumb_offset + (info.border_info.visible and info.border_info.top or 0),
col = info.col + info.width - 1, -- info.col was already added scrollbar offset.
zindex = (self.style.zindex and (self.style.zindex + 2) or 2),
border = "none",
}
if self.thumb_win and vim.api.nvim_win_is_valid(self.thumb_win) then
vim.api.nvim_win_set_config(self.thumb_win, style)