mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-16 07:13:52 -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)
|
||||
endif
|
||||
if file !~ ':' && file !~ '^/'
|
||||
let file = file.s:buffer.path(':')
|
||||
let file = file.s:buffer().path(':')
|
||||
endif
|
||||
else
|
||||
let file = s:buffer().path(s:buffer().commit() == '' ? ':' : '/')
|
||||
|
||||
Reference in New Issue
Block a user