# HG changeset patch # User Ludovic Chabant # Date 1469054483 -7200 # Node ID 04288637e5952f73c20526f5d0fbd9cff654308a # Parent 6f15299869fc66dc808ee85c3c229e11b42307b6 Don't use `uniq`. * It's only in the latest versions of Vim. * It forces re-ordering the markers which could potentially break things. diff -r 6f15299869fc -r 04288637e595 autoload/gutentags.vim --- 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) != ""