Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Escape cmd.exe reserved chars

  • Loading branch information...
commit b3334eb659af6cdd17dfe07373d05bb6cdd2a52d 1 parent 6089090
@kien authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 autoload/ctrlp/buffertag.vim
View
5 autoload/ctrlp/buffertag.vim
@@ -149,8 +149,11 @@ fu! s:esctagscmd(bin, args, ...)
if exists('+ssl')
let [ssl, &ssl] = [&ssl, 0]
en
- let fname = a:0 == 1 ? shellescape(a:1) : ''
+ let fname = a:0 ? shellescape(a:1) : ''
let cmd = shellescape(a:bin).' '.a:args.' '.fname
+ if &sh =~ 'cmd\.exe'
+ let cmd = substitute(cmd, '[&()@^<>|]', '^\0', 'g')
+ en
if exists('+ssl')
let &ssl = ssl
en
Please sign in to comment.
Something went wrong with that request. Please try again.