mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-11 12:53:52 -05:00
Fix :Gdiff HEAD when in a blob
This commit is contained in:
@@ -677,7 +677,7 @@ function! s:Diff(...) abort
|
||||
let file = s:buffer().expand(a:1)
|
||||
endif
|
||||
if file !~ ':' && file !~ '^/'
|
||||
let file = file.s:buffer().path(':0:')
|
||||
let file = file.s:buffer().path(':')
|
||||
endif
|
||||
else
|
||||
let file = s:buffer().path(s:buffer().commit() == '' ? ':0:' : '/')
|
||||
|
||||
Reference in New Issue
Block a user