From 2c13dfff039ad58303c60b344a84d51629034202 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 7 Jul 2019 12:25:44 -0400 Subject: [PATCH] Fix completion on :vert Git --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index e599b0b..e7f2294 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -1997,7 +1997,7 @@ endfunction function! fugitive#CompleteGit(lead, ...) abort let dir = a:0 == 1 ? a:1 : a:0 == 3 ? a:3 : s:Dir() let pre = a:0 > 1 ? strpart(a:1, 0, a:2) : '' - if pre !~# ' [[:alnum:]-]\+ ' + if pre !~# '\u\w*[! ] *[[:alnum:]-]\+ ' let cmds = s:Subcommands() return filter(sort(cmds+keys(s:Aliases(dir))), 'strpart(v:val, 0, strlen(a:lead)) ==# a:lead') elseif pre =~# ' -- '