mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 14:23:51 -05: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", "")')
|
||||
else
|
||||
let matches = s:CompleteHeads(dir)
|
||||
if a:A =~# '^[\''"]\=+'
|
||||
call map(matches, '"+" . v:val')
|
||||
endif
|
||||
endif
|
||||
return s:FilterEscape(matches, a:A)
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user