Skip to content

Commit d9388d8

Browse files
authored
Merge pull request #579 from ctrlpvim/unescape-path
Unescape paths for GlobPath Not all problematic cases are covered with this because of its complexity, but most of them are fixed. This is enough for now.
2 parents 61e964f + c951061 commit d9388d8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

autoload/ctrlp.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,8 @@ endf
428428
if has('patch-8.2-0995')
429429
fu! s:GlobPath(dirs, depth)
430430
let entries = []
431-
for e in split(a:dirs, ',')
431+
let dirs = substitute(a:dirs, '\\\([%# ]\)', '\1', 'g')
432+
for e in split(dirs, ',')
432433
sil let files = readdir(e, '1', {'sort': 'none'})
433434
if !s:showhidden | cal filter(files, 'v:val[0] != "."') | en
434435
let entries += map(files, 'e.s:lash.v:val')

0 commit comments

Comments
 (0)