mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 06:13:51 -05:00
Don't complete directories as subcommands
This commit is contained in:
@@ -2780,7 +2780,7 @@ function! s:CompletableSubcommands(dir) abort
|
||||
endif
|
||||
let cpath = s:cpath(path)
|
||||
if !has_key(s:path_subcommands, cpath)
|
||||
let s:path_subcommands[cpath] = filter(map(s:GlobComplete(path.'/git-', '*', 1),'substitute(v:val,"\\.exe$","","")'), 'v:val !~# "--"')
|
||||
let s:path_subcommands[cpath] = filter(map(s:GlobComplete(path.'/git-', '*', 1),'substitute(v:val,"\\.exe$","","")'), 'v:val !~# "--\\|/"')
|
||||
endif
|
||||
call extend(commands, s:path_subcommands[cpath])
|
||||
endfor
|
||||
|
||||
Reference in New Issue
Block a user