mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-16 15:23:51 -05:00
Don't blow up on :Gdiff HEAD
This commit is contained in:
@@ -558,7 +558,7 @@ function! s:Diff(...) abort
|
|||||||
let file = s:buffer().expand(a:1)
|
let file = s:buffer().expand(a:1)
|
||||||
endif
|
endif
|
||||||
if file !~ ':' && file !~ '^/'
|
if file !~ ':' && file !~ '^/'
|
||||||
let file = file.s:buffer.path(':')
|
let file = file.s:buffer().path(':')
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
let file = s:buffer().path(s:buffer().commit() == '' ? ':' : '/')
|
let file = s:buffer().path(s:buffer().commit() == '' ? ':' : '/')
|
||||||
|
|||||||
Reference in New Issue
Block a user