Fix git execution with wrong working directory#16
Conversation
This fixes a problem where wrong gutter markers would appear after navigating to another place with e.g. 'gf'.
|
Here the former more detailed description of the problem: Lets say I have a code repository like this: /home/droggl/code Assume a.h and b.h are both checked in and all working trees are clean. Now lets say, I chdir into /home/droggl/code/a and edit a.h (git-gutter-vim behaving exactly as I like so far). Now say somewhere in a.h there is a What vim actually opened with the gf according to its status line is: "~/droggl/code/a/../b/b.h". |
|
Sorry to reply late. Thanks! |
Fix git execution with wrong working directory
Seems I fixed the problem related to opening files with methods like "gf", please review (eg. I bet the chdir can be done more elegantly in vimscript) and apply if you like :)