From 7a281a925c07e0ef3fb082164e441ee3cecab124 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 14 Oct 2009 15:53:41 -0400 Subject: [PATCH] Don't blow up on :Gdiff HEAD --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 8c02768..67f1ab7 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -558,7 +558,7 @@ function! s:Diff(...) abort let file = s:buffer().expand(a:1) endif if file !~ ':' && file !~ '^/' - let file = file.s:buffer.path(':') + let file = file.s:buffer().path(':') endif else let file = s:buffer().path(s:buffer().commit() == '' ? ':' : '/')