changeset 5:12f4f50f4d3a

Use CtrlP root markers if they've been defined.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 20 Jul 2014 14:38:44 -0700
parents 512eaa56c7db
children ec87439fc784
files plugin/autotags.vim
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugin/autotags.vim	Sun Jul 20 14:25:23 2014 -0700
+++ b/plugin/autotags.vim	Sun Jul 20 14:38:44 2014 -0700
@@ -113,6 +113,10 @@
 function! s:get_tagfile_for(path) abort
     let l:path = s:stripslash(a:path)
     let l:previous_path = ""
+    let l:markers = g:autotags_project_root[:]
+    if exists('g:ctrlp_root_markers')
+        let l:markers += g:ctrlp_root_markers
+    endif
     while l:path != l:previous_path
         for root in g:autotags_project_root
             if getftype(l:path . '/' . root) != ""