Browse files

[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()
  • Loading branch information...
flatcap authored and tpope committed Apr 1, 2012
1 parent 3c641a7 commit e142a27ab8a37e8f3b99842ec0c5e58a4fa3fe02
Showing with 2 additions and 2 deletions.
  1. +2 −2 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)
- execute 'leftabove '.split.' `=spec`'
+ execute 'leftabove '.split.' '.s:fnameescape(spec)
call s:diffthis()
wincmd p

0 comments on commit e142a27

Please sign in to comment.