From 57968b63c266b5d37bb08fa6e3807d230b882781 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 5 Jan 2022 10:47:12 -0500 Subject: [PATCH] Support tab complete of :Git push remote \+branch Resolves: https://github.com/tpope/vim-fugitive/issues/1916 --- autoload/fugitive.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 49aaab3..c639fa0 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -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