Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Simplify the filtering

  • Loading branch information...
commit c1c00df70f8849875501097b5e6e852fe59695bd 1 parent c1646e3
@kien authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  autoload/ctrlp.vim
View
3  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^<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()
Please sign in to comment.
Something went wrong with that request. Please try again.