mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-13 16:39:02 +08:00
Fix :Gdiff HEAD when in a blob
This commit is contained in:
1 parent
a6439f6aa0
commit
7da464557b
1 file changed
+1
-1
+1
-1
@@ -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:' : '/')
|
||||||
|
|||||||
Reference in new issue
Block a user