fix: handle winborder in neovim-0.11 (#2150)
This commit is contained in:
@@ -145,6 +145,7 @@ window.update = function(self)
|
|||||||
row = info.row,
|
row = info.row,
|
||||||
col = info.col + info.width - info.scrollbar_offset, -- info.col was already contained the scrollbar offset.
|
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),
|
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
|
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)
|
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),
|
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.
|
col = info.col + info.width - 1, -- info.col was already added scrollbar offset.
|
||||||
zindex = (self.style.zindex and (self.style.zindex + 2) or 2),
|
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
|
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)
|
vim.api.nvim_win_set_config(self.thumb_win, style)
|
||||||
|
|||||||
Reference in New Issue
Block a user