commit 7da464557b2a82268f82d0ffddd62221c90ca7d0 (tree)
parent a6439f6aa06c23e196f4d6310dad8a4ae3ab17ff
Author: Tim Pope <code@tpope.net>
Date: Thu, 15 Oct 2009 18:33:08 -0400
Fix :Gdiff HEAD when in a blob
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim
@@ -677,7 +677,7 @@ function! s:Diff(...) abort
let file = s:buffer().expand(a:1)
endif
if file !~ ':' && file !~ '^/'
- let file = file.s:buffer().path(':0:')
+ let file = file.s:buffer().path(':')
endif
else
let file = s:buffer().path(s:buffer().commit() == '' ? ':0:' : '/')