From 272e2e84784e9a4bc7603da9ca26a22ff6c8e6b9 Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Mon, 30 Apr 2012 16:40:28 +1200 Subject: [PATCH] Escape some special characters for cmd.exe --- autoload/tagbar.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index da029aa..3d782b9 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -3045,6 +3045,11 @@ function! s:EscapeCtagsCmd(ctags_bin, args, ...) let ctags_cmd = shellescape(a:ctags_bin) . ' ' . a:args . ' ' . fname + " Stupid cmd.exe quoting + if &shell =~ 'cmd\.exe' + let ctags_cmd = substitute(ctags_cmd, '\(&\|\^\)', '^\0', 'g') + endif + if exists('+shellslash') let &shellslash = shellslash_save endif