changeset 131:ec57d6a14486

Don't search through the same root markers twice.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 20 Jul 2016 12:11:13 +0200
parents b6ec4caa22ff
children a6ef1c860d07
files autoload/gutentags.vim
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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) != ""