Don't escape "!" when calling :terminal

This commit is contained in:
Tim Pope 2018-08-04 19:17:06 -04:00
parent 06b3da7204
commit 969a3d857f

View File

@ -1381,7 +1381,7 @@ function! s:Git(bang, mods, args) abort
-tabnew
endif
execute 'lcd' fnameescape(tree)
let exec = escape(git . ' ' . s:ShellExpand(args), '!#%')
let exec = escape(git . ' ' . s:ShellExpand(args), '#%')
return 'exe ' . string('terminal ' . exec) . after
else
let cmd = "exe '!'.escape(" . string(git) . " . ' ' . s:ShellExpand(" . string(args) . "),'!#%')"