Skip to content

Commit f5a6ae2

Browse files
committed
use shell
1 parent fd1534c commit f5a6ae2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

autoload/ctrlp.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ fu! s:UserCmd(lscmd)
459459
call job_stop(s:job)
460460
en
461461
let g:ctrlp_allfiles = []
462-
let s:job = job_start(printf(lscmd, path), {'callback': 'ctrlp#addfile'})
462+
let s:job = job_start([&shell, &shellcmdflag, printf(lscmd, path)], {'callback': 'ctrlp#addfile'})
463463
elsei has('patch-7.4-597') && !(has('win32') || has('win64'))
464464
let g:ctrlp_allfiles = systemlist(printf(lscmd, path))
465465
el

0 commit comments

Comments
 (0)