mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 11:33:47 -05:00
Strip .exe from completed Git commands
This commit is contained in:
@@ -474,7 +474,7 @@ function! s:GitComplete(A,L,P) abort
|
||||
if !exists('s:exec_path')
|
||||
let s:exec_path = s:sub(system(g:fugitive_git_executable.' --exec-path'),'\n$','')
|
||||
endif
|
||||
let cmds = map(split(glob(s:exec_path.'/git-*'),"\n"),'v:val[strlen(s:exec_path)+5 : -1]')
|
||||
let cmds = map(split(glob(s:exec_path.'/git-*'),"\n"),'s:sub(v:val[strlen(s:exec_path)+5 : -1],"\\.exe$","")')
|
||||
if a:L =~ ' [[:alnum:]-]\+ '
|
||||
return s:repo().superglob(a:A)
|
||||
elseif a:A == ''
|
||||
|
||||
Reference in New Issue
Block a user