mirror of
https://github.com/lewis6991/gitsigns.nvim
synced 2024-09-16 14:34:09 +02:00
fix(blame): show the winbar if the main window has it enabled
This commit is contained in:
parent
8df63f2ddc
commit
17e8fd6618
1 changed files with 5 additions and 0 deletions
|
@ -289,6 +289,11 @@ M.blame = function()
|
|||
blm_wlo.winfixwidth = true
|
||||
blm_wlo.wrap = false
|
||||
|
||||
if vim.wo[win].winbar ~= '' then
|
||||
local name = api.nvim_buf_get_name(bufnr)
|
||||
blm_wlo.winbar = vim.fn.fnamemodify(name, ':.')
|
||||
end
|
||||
|
||||
if vim.fn.exists('&winfixbuf') then
|
||||
blm_wlo.winfixbuf = true
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue