motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

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:
Mplugin/fugitive.vim | 2+-
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:' : '/')