Skip to content

Commit da3a72a

Browse files
committed
Validate g:ctrlp_types
1 parent 35a9a06 commit da3a72a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

plugin/ctrlp.vim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@ if ( exists('g:loaded_ctrlp') && g:loaded_ctrlp ) || v:version < 700 || &cp
1010
en
1111
let g:loaded_ctrlp = 1
1212

13+
let s:types = ['fil', 'buf', 'mru']
1314
if !exists('g:ctrlp_types')
14-
let g:ctrlp_types = ['fil', 'buf', 'mru']
15+
let g:ctrlp_types = s:types
16+
el
17+
call filter(g:ctrlp_types, "index(['fil', 'buf', 'mru'], v:val)!=-1")
1518
en
1619
let [g:ctrlp_lines, g:ctrlp_allfiles, g:ctrlp_alltags, g:ctrlp_alldirs,
1720
\ g:ctrlp_allmixes, g:ctrlp_buftags, g:ctrlp_ext_vars, g:ctrlp_builtins]

0 commit comments

Comments
 (0)