diff --git a/autoload/ctrlp.vim b/autoload/ctrlp.vim index 3677a71..9a6ac6a 100644 --- a/autoload/ctrlp.vim +++ b/autoload/ctrlp.vim @@ -292,8 +292,7 @@ fu! ctrlp#clra() let cadir = ctrlp#utils#cachedir() if isdirectory(cadir) let cafiles = split(s:glbpath(s:fnesc(cadir, 'g', ','), '**', 1), "\n") - let eval = '!isdirectory(v:val) && fnamemodify(v:val, ":t") !~' - \ . ' ''\v^[.a-z]+$|\.log$''' + let eval = '!isdirectory(v:val) && v:val !~ ''\v[\/]cache[.a-z]+$|\.log$''' sil! cal map(filter(cafiles, eval), 'delete(v:val)') en cal ctrlp#clr()