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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user