[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()
This commit is contained in:
parent
3c641a7ef5
commit
e142a27ab8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user