Permalink
Browse files

Simplify the filtering

  • Loading branch information...
1 parent c1646e3 commit c1c00df70f8849875501097b5e6e852fe59695bd @kien committed Feb 5, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 autoload/ctrlp.vim
View
@@ -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^<cache>[.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()

0 comments on commit c1c00df

Please sign in to comment.