mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 10:30:05 +08:00
fix(diff): fix diff mode
close https://github.com/SpaceVim/SpaceVim/issues/4802
This commit is contained in:
parent
de3ec27729
commit
e6ac093930
@ -1634,7 +1634,7 @@ function! s:parser_argv() abort
|
||||
endif
|
||||
elseif index(v:argv, '-d') !=# -1
|
||||
" this is diff mode
|
||||
return [2]
|
||||
return [2, 'diff mode, use default arguments:' . string(v:argv)]
|
||||
elseif v:argv[-1] =~# '/$'
|
||||
let f = fnamemodify(expand(v:argv[-1]), ':p')
|
||||
if isdirectory(f)
|
||||
|
Loading…
Reference in New Issue
Block a user