mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-15 14:53: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.*')
|
let f = matchstr(rev, ')\zs.*')
|
||||||
if f=~# '^\.\.\=\%(/\|$\)'
|
if f=~# '^\.\.\=\%(/\|$\)'
|
||||||
let f = simplify(getcwd() . '/' . f)
|
let f = simplify(getcwd() . '/' . f)
|
||||||
elseif empty(f)
|
|
||||||
let f = base
|
|
||||||
elseif f !~# '^/\|^\%(\a\a\+:\).*\%(//\|::\)' . (has('win32') ? '\|^\a:/' : '')
|
elseif f !~# '^/\|^\%(\a\a\+:\).*\%(//\|::\)' . (has('win32') ? '\|^\a:/' : '')
|
||||||
let f = base . '/' . f
|
let f = base . '/' . f
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user