mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 22:33:51 -05:00
Fix :Git difftool work-tree paths
I don't think the change that this reverts was necessarily wrong, but this isn't the best time in the release cycle to play whack-a-mole with unintended consequences. Closes https://github.com/tpope/vim-fugitive/issues/1732
This commit is contained in:
@@ -1080,8 +1080,6 @@ function! fugitive#Find(object, ...) abort
|
||||
let f = matchstr(rev, ')\zs.*')
|
||||
if f=~# '^\.\.\=\%(/\|$\)'
|
||||
let f = simplify(getcwd() . '/' . f)
|
||||
elseif empty(f)
|
||||
let f = base
|
||||
elseif f !~# '^/\|^\%(\a\a\+:\).*\%(//\|::\)' . (has('win32') ? '\|^\a:/' : '')
|
||||
let f = base . '/' . f
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user