# HG changeset patch # User Ludovic Chabant # Date 1469009473 -7200 # Node ID ec57d6a1448651c329c6d5fac7d24d7ba79d8e25 # Parent b6ec4caa22ff09c268095b1c014007a23a212c55 Don't search through the same root markers twice. diff -r b6ec4caa22ff -r ec57d6a14486 autoload/gutentags.vim --- a/autoload/gutentags.vim Wed Jul 20 08:31:34 2016 +0200 +++ b/autoload/gutentags.vim Wed Jul 20 12:11:13 2016 +0200 @@ -87,6 +87,7 @@ if exists('g:ctrlp_root_markers') let l:markers += g:ctrlp_root_markers endif + let l:markers = uniq(sort(l:markers)) while l:path != l:previous_path for root in l:markers if getftype(l:path . '/' . root) != ""