From c1c00df70f8849875501097b5e6e852fe59695bd Mon Sep 17 00:00:00 2001 From: Kien N Date: Tue, 5 Feb 2013 07:36:43 +0700 Subject: [PATCH] Simplify the filtering --- autoload/ctrlp.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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()