We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebc568c commit ecce489Copy full SHA for ecce489
autoload/ctrlp/mixed.vim
@@ -64,6 +64,8 @@ fu! s:getnewmix(cwd, clim)
64
if len(g:ctrlp_lines) <= a:clim
65
cal sort(g:ctrlp_lines, 'ctrlp#complen')
66
en
67
+ " remove duplicates from the final result set
68
+ let g:ctrlp_lines=filter(copy(g:ctrlp_lines), 'index(g:ctrlp_lines, v:val, v:key+1)==-1')
69
let g:ctrlp_allmixes = { 'filtime': getftime(ctrlp#utils#cachefile()),
70
\ 'mrutime': getftime(ctrlp#mrufiles#cachefile()), 'cwd': a:cwd,
71
\ 'bufs': len(ctrlp#mrufiles#bufs()), 'data': g:ctrlp_lines }
0 commit comments