mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-12-08 04:54:52 +08:00
Support tab complete of :Git push remote \+branch
Resolves: https://github.com/tpope/vim-fugitive/issues/1916
This commit is contained in:
@@ -6256,6 +6256,9 @@ function! s:CompletePush(A, L, P, ...) abort
|
|||||||
call map(matches, 'lead . s:sub(v:val, "^.*\t", "")')
|
call map(matches, 'lead . s:sub(v:val, "^.*\t", "")')
|
||||||
else
|
else
|
||||||
let matches = s:CompleteHeads(dir)
|
let matches = s:CompleteHeads(dir)
|
||||||
|
if a:A =~# '^[\''"]\=+'
|
||||||
|
call map(matches, '"+" . v:val')
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
return s:FilterEscape(matches, a:A)
|
return s:FilterEscape(matches, a:A)
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user