Use old ctrlp_cache if exists

* Continue #32
This commit is contained in:
Kien N 2011-11-14 16:00:44 +07:00
parent 9f255ab6b6
commit 6f2fb27b55

View File

@ -11,11 +11,13 @@ endf
let s:lash = ctrlp#utils#lash()
fu! ctrlp#utils#opts()
let cache_dir = exists('g:ctrlp_cache_dir') ?
\ isdirectory(g:ctrlp_cache_dir.s:lash.'.ctrlp_cache')
\ ? g:ctrlp_cache_dir.s:lash.'.ctrlp_cache'
\ : g:ctrlp_cache_dir : $HOME.s:lash.'.ctrlp_cache'
let s:cache_dir = expand(cache_dir, 1)
let s:cache_dir = $HOME.s:lash.'.ctrlp_cache'
if exists('g:ctrlp_cache_dir')
let s:cache_dir = expand(g:ctrlp_cache_dir, 1)
if isdirectory(s:cache_dir.s:lash.'.ctrlp_cache')
let s:cache_dir = s:cache_dir.s:lash.'.ctrlp_cache'
en
en
endf
cal ctrlp#utils#opts()
"}}}