Support tab complete of :Git push remote \+branch

Resolves: https://github.com/tpope/vim-fugitive/issues/1916
This commit is contained in:
Tim Pope
2022-01-05 10:47:12 -05:00
parent 88a97127d1
commit 57968b63c2

View File

@@ -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