Fix :Gdiff HEAD when in a blob
This commit is contained in:
parent
a6439f6aa0
commit
7da464557b
@ -677,7 +677,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(':0:')
|
let file = file.s:buffer().path(':')
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
let file = s:buffer().path(s:buffer().commit() == '' ? ':0:' : '/')
|
let file = s:buffer().path(s:buffer().commit() == '' ? ':0:' : '/')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user