Skip to content

Commit

Permalink
fix(blame): show the winbar if the main window has it enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
ofseed authored and lewis6991 committed Jun 24, 2024
1 parent 8df63f2 commit 17e8fd6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/gitsigns/blame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 17e8fd6

Please sign in to comment.