1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-17 11:30:28 +01:00

Escape some special characters for cmd.exe

This commit is contained in:
Jan Larres
2012-04-30 16:40:28 +12:00
parent 814bb41ecf
commit 272e2e8478

View File

@@ -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