mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-11 21:03:53 -05:00
Fix tab complete for :Git push --option
Closes https://github.com/tpope/vim-fugitive/issues/1570
This commit is contained in:
@@ -1622,7 +1622,7 @@ endfunction
|
|||||||
|
|
||||||
function! s:CompleteRemote(A, L, P, ...) abort
|
function! s:CompleteRemote(A, L, P, ...) abort
|
||||||
let dir = a:0 ? a:1 : s:Dir()
|
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)
|
if !empty(remote)
|
||||||
let matches = s:LinesError([dir, 'ls-remote', remote])[0]
|
let matches = s:LinesError([dir, 'ls-remote', remote])[0]
|
||||||
call filter(matches, 'v:val =~# "\t" && v:val !~# "{"')
|
call filter(matches, 'v:val =~# "\t" && v:val !~# "{"')
|
||||||
|
|||||||
Reference in New Issue
Block a user