Skip to content

Commit 36429fd

Browse files
committed
remove duplicates in :CtrlPMixed
close #314, #367
1 parent ca952ad commit 36429fd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

autoload/ctrlp/mixed.vim

+3
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ fu! s:getnewmix(cwd, clim)
6464
if len(g:ctrlp_lines) <= a:clim
6565
cal sort(g:ctrlp_lines, 'ctrlp#complen')
6666
en
67+
if exists('*uniq')
68+
call uniq(g:ctrlp_lines)
69+
en
6770
let g:ctrlp_allmixes = { 'filtime': getftime(ctrlp#utils#cachefile()),
6871
\ 'mrutime': getftime(ctrlp#mrufiles#cachefile()), 'cwd': a:cwd,
6972
\ 'bufs': len(ctrlp#mrufiles#bufs()), 'data': g:ctrlp_lines }

0 commit comments

Comments
 (0)