From 53f3b2b0d7f792889e36dac5d5ac3c8953b0c521 Mon Sep 17 00:00:00 2001 From: Kien N Date: Thu, 20 Jun 2013 11:58:35 +0700 Subject: [PATCH] Match ampersands literally --- autoload/ctrlp.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/ctrlp.vim b/autoload/ctrlp.vim index 632c5f1..dd8ea0b 100644 --- a/autoload/ctrlp.vim +++ b/autoload/ctrlp.vim @@ -384,7 +384,7 @@ fu! s:UserCmd(lscmd) let [ssl, &ssl, path] = [&ssl, 0, tr(path, '/', '\')] en if has('win32') || has('win64') - let lscmd = substitute(lscmd, '\v(^|&&\s*)\zscd (/d)@!', 'cd /d ', '') + let lscmd = substitute(lscmd, '\v(^|\&\&\s*)\zscd (/d)@!', 'cd /d ', '') en let path = exists('*shellescape') ? shellescape(path) : path let g:ctrlp_allfiles = split(system(printf(lscmd, path)), "\n")