Simplify the filtering
This commit is contained in:
parent
c1646e3c28
commit
c1c00df70f
@ -292,8 +292,7 @@ fu! ctrlp#clra()
|
|||||||
let cadir = ctrlp#utils#cachedir()
|
let cadir = ctrlp#utils#cachedir()
|
||||||
if isdirectory(cadir)
|
if isdirectory(cadir)
|
||||||
let cafiles = split(s:glbpath(s:fnesc(cadir, 'g', ','), '**', 1), "\n")
|
let cafiles = split(s:glbpath(s:fnesc(cadir, 'g', ','), '**', 1), "\n")
|
||||||
let eval = '!isdirectory(v:val) && fnamemodify(v:val, ":t") !~'
|
let eval = '!isdirectory(v:val) && v:val !~ ''\v[\/]cache[.a-z]+$|\.log$'''
|
||||||
\ . ' ''\v^<cache>[.a-z]+$|\.log$'''
|
|
||||||
sil! cal map(filter(cafiles, eval), 'delete(v:val)')
|
sil! cal map(filter(cafiles, eval), 'delete(v:val)')
|
||||||
en
|
en
|
||||||
cal ctrlp#clr()
|
cal ctrlp#clr()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user