Skip to content

Commit

Permalink
fix(blame-nvim): make sure buffer is valid before checking filetype
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Apr 11, 2024
1 parent 4d2ee01 commit c6c5991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/astrocommunity/git/blame-nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ return {
return require("astrocore").extend_tbl(opts, {
opts = {
disable_winbar_cb = function(args)
if vim.bo[args.buf].filetype == "blame" then return false end
if vim.api.nvim_buf_is_valid(args.buf) and vim.bo[args.buf].filetype == "blame" then return false end
if disable_winbar_cb then return disable_winbar_cb(args) end
end,
},
Expand Down

0 comments on commit c6c5991

Please sign in to comment.