git-blame.nvim icon indicating copy to clipboard operation
git-blame.nvim copied to clipboard

Breaks when spaces in filepath

Open eriedaberrie opened this issue 2 years ago • 3 comments

Like the title says, the plugin works fine usually but ends up always saying "Not Committed Yet" whenever the filepath has spaces in it. It seems to be a fairly easy fix just by wrapping all the filepaths in vim.fn.shellescape(). (Maybe this is a sign that I should really stop using spaces in my git directory names.)

eriedaberrie avatar Jul 07 '22 01:07 eriedaberrie

Interesting 🤔 I'll check it once I have some spare time

f-person avatar Jul 07 '22 13:07 f-person

@eriedaberrie did #54 fix it for you? I tried the plugin on a file with spaces after merging #54 but got the same result. I'll try to do some more investigation later

f-person avatar Aug 08 '22 10:08 f-person

That's strange, I was able to get everything working with #54.

eriedaberrie avatar Aug 08 '22 20:08 eriedaberrie

True, works for me too. Thanks one more time ^_^

f-person avatar Sep 11 '22 02:09 f-person