commit e142a27ab8a37e8f3b99842ec0c5e58a4fa3fe02 (tree)
parent 3c641a7ef5e97d26737e91eaa555ff72a709cfc4
Author: Richard Russon (flatcap) <richard.russon@gmail.com>
Date: Sun, 1 Apr 2012 15:24:01 +0100
[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()
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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