# HG changeset patch # User Ludovic Chabant # Date 1405892324 25200 # Node ID 12f4f50f4d3af91f43bccc72bf0030c38d10bc29 # Parent 512eaa56c7db3fb6303218f757c378fe9dd3515c Use CtrlP root markers if they've been defined. diff -r 512eaa56c7db -r 12f4f50f4d3a plugin/autotags.vim --- 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) != ""