From e142a27ab8a37e8f3b99842ec0c5e58a4fa3fe02 Mon Sep 17 00:00:00 2001 From: "Richard Russon (flatcap)" Date: Sun, 1 Apr 2012 15:24:01 +0100 Subject: [PATCH] [BUG] wildignore breaks Gdiff When the file you're editing matches the vim variable wildignore Gdiff fails. This line wasn't being triggered: autocmd BufReadCmd fugitive://**//[0-9a-f][0-9a-f]* exe s:BufReadObject() --- plugin/fugitive.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index c790f7e..5277d86 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -1360,9 +1360,9 @@ function! s:Diff(bang,...) let spec = s:repo().translate(file) let commit = matchstr(spec,'\C[^:/]//\zs\x\+') if s:buffer().compare_age(commit) < 0 - execute 'rightbelow '.split.' `=spec`' + execute 'rightbelow '.split.' '.s:fnameescape(spec) else - execute 'leftabove '.split.' `=spec`' + execute 'leftabove '.split.' '.s:fnameescape(spec) endif call s:diffthis() wincmd p