aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorYasuhiro Matsumoto2021-12-24 18:48:07 +0900
committerYasuhiro Matsumoto2021-12-24 18:48:34 +0900
commit352b628d0ac18a17c6e4fed2f5c5b0b2c69b7970 (patch)
treec99fe756b98cf818ec8eef5a53d0ceaade7c3c08
parentd9388d89745bb30c20ad0051c53d301cd054f47c (diff)
downloadctrlp.vim-fix-587.tar.gz

Fix GlobPath

fix-587

Fixes #587

-rw-r--r--autoload/ctrlp.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/ctrlp.vim b/autoload/ctrlp.vim
index 3d57546..4eccf1f 100644
--- a/autoload/ctrlp.vim
+++ b/autoload/ctrlp.vim
@@ -429,7 +429,7 @@ if has('patch-8.2-0995')
fu! s:GlobPath(dirs, depth)
let entries = []
let dirs = substitute(a:dirs, '\\\([%# ]\)', '\1', 'g')
- for e in split(dirs, ',')
+ for e in split(dirs, '\n')
sil let files = readdir(e, '1', {'sort': 'none'})
if !s:showhidden | cal filter(files, 'v:val[0] != "."') | en
let entries += map(files, 'e.s:lash.v:val')
@@ -439,7 +439,7 @@ if has('patch-8.2-0995')
let g:ctrlp_allfiles += dnf[1]
if !empty(dnf[0]) && !s:maxf(len(g:ctrlp_allfiles)) && depth <= s:maxdepth
sil! cal ctrlp#progress(len(g:ctrlp_allfiles), 1)
- cal s:GlobPath(join(dnf[0], ','), depth)
+ cal s:GlobPath(join(dnf[0], "\n"), depth)
en
endf
el