APZelos / blamer.nvim

A git blame plugin for neovim inspired by VS Code's GitLens plugin
MIT License
733 stars 35 forks source link

Fix determine whether a path is empty #57

Open Alex-duzhichao opened 2 years ago

Alex-duzhichao commented 2 years ago

If we call expand('%p') in a unnamed buffer, we will get an empty string "". shellescape("") returns an escaped string "''" which is not empty. So the determine whether a path is empty in current code takes no effect.

Determine the emptyness using result of expand('%p') fixes this bug.