tanvirtin / vgit.nvim

Visual git plugin for Neovim
MIT License
583 stars 11 forks source link

fix(git show): cwd is sometimes required #337

Closed zdleaf closed 1 year ago

zdleaf commented 1 year ago

Hi tanvirtin,

Apologies, noticed today last commit breaks a few things. This is what we wanted.

Commit e0fe17114 ("fix(git show): allow cwd outside root git dir") removed the "./" prefix before the filename when cwd did not equal the root git dir.

Some aspects of VGit like live gutter and hunk preview rely on this, so replace with self.cwd instead.

Thanks

zdleaf commented 1 year ago

Should fix #336