From 9b6a24b13166feee0cc83e2cc40e2ddb31bcc2a1 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 27 Jul 2020 19:57:50 -0400 Subject: [PATCH] Fix tab complete for :Git push --option Closes https://github.com/tpope/vim-fugitive/issues/1570 --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 1106aea..42b8291 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -1622,7 +1622,7 @@ endfunction function! s:CompleteRemote(A, L, P, ...) abort let dir = a:0 ? a:1 : s:Dir() - let remote = matchstr(a:L, '\u\w*[! ] *\zs\S\+\ze ') + let remote = matchstr(a:L, '\u\w*[! ] *.\{-\}\s\@<=\zs[^-[:space:]]\S*\ze ') if !empty(remote) let matches = s:LinesError([dir, 'ls-remote', remote])[0] call filter(matches, 'v:val =~# "\t" && v:val !~# "{"')