From 13fd856db99ab3fa6f99f17886f7e2742d5ba9cc Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 10 Mar 2010 19:37:49 -0500 Subject: [PATCH] Strip .exe from completed Git commands --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 4e8d86c..d88b11f 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -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 == ''