From 8686eb17e08e4b18dec069a83bd7798823e24335 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 15 Apr 2021 08:56:30 -0400 Subject: [PATCH] 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 --- autoload/fugitive.vim | 2 -- 1 file changed, 2 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 294c4bf..a24b50c 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -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