aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorYasuhiro Matsumoto2017-05-25 01:33:49 +0900
committerYasuhiro Matsumoto2017-05-25 01:36:39 +0900
commit7b9d8455e7f4ff9f975e38f85698bfa9c9be51b4 (patch)
tree05d219df98bb8aef15a42cd50ce2723f80bc9ba7
parent0677f471c007691ab3e3c5e41849a21d9529ee90 (diff)
downloadctrlp.vim-fix314.tar.gz

remove duplicates in :CtrlPMixed

fix314

close #314, #367

-rw-r--r--autoload/ctrlp/mixed.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/autoload/ctrlp/mixed.vim b/autoload/ctrlp/mixed.vim
index 74d904d..baea33a 100644
--- a/autoload/ctrlp/mixed.vim
+++ b/autoload/ctrlp/mixed.vim
@@ -64,6 +64,9 @@ fu! s:getnewmix(cwd, clim)
if len(g:ctrlp_lines) <= a:clim
cal sort(g:ctrlp_lines, 'ctrlp#complen')
en
+ if exists('*uniq')
+ call uniq(g:ctrlp_lines)
+ en
let g:ctrlp_allmixes = { 'filtime': getftime(ctrlp#utils#cachefile()),
\ 'mrutime': getftime(ctrlp#mrufiles#cachefile()), 'cwd': a:cwd,
\ 'bufs': len(ctrlp#mrufiles#bufs()), 'data': g:ctrlp_lines }