aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin
diff options
context:
space:
mode:
authorYasuhiro Matsumoto2016-03-18 16:46:23 +0900
committerYasuhiro Matsumoto2016-04-10 21:37:33 +0900
commite6291bc022438e72f571e8cdac3001c97372b596 (patch)
tree8abd034e30825def189aa6616ac3b2c7882cacec /plugin
parentac8b3b6a1cf1772b44d39f9e4fe5001fb0e8a678 (diff)
downloadctrlp.vim-e6291bc022438e72f571e8cdac3001c97372b596.tar.gz

Validate g:ctrlp_types

Diffstat (limited to 'plugin')
-rw-r--r--plugin/ctrlp.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugin/ctrlp.vim b/plugin/ctrlp.vim
index fd9b4a0..9f2bb14 100644
--- a/plugin/ctrlp.vim
+++ b/plugin/ctrlp.vim
@@ -10,8 +10,11 @@ if ( exists('g:loaded_ctrlp') && g:loaded_ctrlp ) || v:version < 700 || &cp
en
let g:loaded_ctrlp = 1
+let s:types = ['fil', 'buf', 'mru']
if !exists('g:ctrlp_types')
- let g:ctrlp_types = ['fil', 'buf', 'mru']
+ let g:ctrlp_types = s:types
+el
+ call filter(g:ctrlp_types, "index(['fil', 'buf', 'mru'], v:val)!=-1")
en
let [g:ctrlp_lines, g:ctrlp_allfiles, g:ctrlp_alltags, g:ctrlp_alldirs,
\ g:ctrlp_allmixes, g:ctrlp_buftags, g:ctrlp_ext_vars, g:ctrlp_builtins]