Fix subcommand completion to match :Git completion
This commit is contained in:
parent
23138572f4
commit
9afa926a23
@ -1456,7 +1456,7 @@ function! s:CompleteSubcommand(subcommand, A, L, P, ...) abort
|
||||
elseif a:A =~# '^-' || a:A is# 0
|
||||
return s:FilterEscape(split(s:ChompDefault('', a:subcommand, '--git-completion-helper'), ' '), a:A)
|
||||
elseif !a:0
|
||||
return fugitive#CompleteObject(a:A)
|
||||
return fugitive#CompleteObject(a:A, s:Dir())
|
||||
elseif type(a:1) == type(function('tr'))
|
||||
return call(a:1, [a:A, a:L, a:P])
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user