mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-16 02:51:34 +08:00
Fix subcommand completion to match :Git completion
This commit is contained in:
1 parent
23138572f4
commit
9afa926a23
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user