From 7da464557b2a82268f82d0ffddd62221c90ca7d0 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 15 Oct 2009 18:33:08 -0400 Subject: [PATCH] Fix :Gdiff HEAD when in a blob --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 77df448..7f89d8a 100644 --- 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:' : '/')