diff options
| author | Yasuhiro Matsumoto | 2017-05-25 01:33:49 +0900 |
|---|---|---|
| committer | Yasuhiro Matsumoto | 2017-05-25 01:36:39 +0900 |
| commit | 7b9d8455e7f4ff9f975e38f85698bfa9c9be51b4 (patch) | |
| tree | 05d219df98bb8aef15a42cd50ce2723f80bc9ba7 | |
| parent | 0677f471c007691ab3e3c5e41849a21d9529ee90 (diff) | |
| download | ctrlp.vim-fix314.tar.gz | |
remove duplicates in :CtrlPMixed
fix314close #314, #367
| -rw-r--r-- | autoload/ctrlp/mixed.vim | 3 |
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 } |