Mercurial > vim-gutentags
changeset 134:04288637e595
Don't use `uniq`.
* It's only in the latest versions of Vim.
* It forces re-ordering the markers which could potentially break things.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 21 Jul 2016 00:41:23 +0200 |
parents | 6f15299869fc |
children | 4c9e2de7d46a |
files | autoload/gutentags.vim |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/autoload/gutentags.vim Wed Jul 20 13:43:41 2016 +0200 +++ b/autoload/gutentags.vim Thu Jul 21 00:41:23 2016 +0200 @@ -89,9 +89,12 @@ let l:previous_path = "" let l:markers = g:gutentags_project_root[:] if exists('g:ctrlp_root_markers') - let l:markers += g:ctrlp_root_markers + for crm in g:ctrlp_root_markers + if index(l:markers, crm) < 0 + call add(l:markers, crm) + endif + endfor endif - let l:markers = uniq(sort(l:markers)) while l:path != l:previous_path for root in l:markers if getftype(l:path . '/' . root) != ""