f-person / git-blame.nvim

Git Blame plugin for Neovim written in Lua
GNU General Public License v3.0
839 stars 41 forks source link

Fixes bug with nil current_blame_text #134

Closed miversen33 closed 1 month ago

miversen33 commented 1 month ago

There is a bug currently where if current_blame_text is nil (which it will be if you are not in a git repo), is_blame_available will return true and you will get nil displayed in your statusline.

This fixes that by adding a check for if not nil as well as not an empty string.

f-person commented 1 month ago

Good catch, thanks!