changeset 147:d566ec6cd2f7

Merge changes.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 26 Nov 2016 16:33:41 -0800
parents 3f15dabaa9f4 (current diff) 3459a2522a3b (diff)
children b178f2251982
files autoload/gutentags.vim plugin/gutentags.vim
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/autoload/gutentags.vim	Sat Nov 26 16:28:43 2016 -0800
+++ b/autoload/gutentags.vim	Sat Nov 26 16:33:41 2016 -0800
@@ -104,7 +104,7 @@
 " Finds the first directory with a project marker by walking up from the given
 " file path.
 function! gutentags#get_project_root(path) abort
-    if g:gutentags_project_root_finder
+    if g:gutentags_project_root_finder != ''
         return call(g:gutentags_project_root_finder, [a:path])
     endif
 
--- a/plugin/gutentags.vim	Sat Nov 26 16:28:43 2016 -0800
+++ b/plugin/gutentags.vim	Sat Nov 26 16:33:41 2016 -0800
@@ -34,7 +34,8 @@
 if g:gutentags_add_default_project_roots
     let g:gutentags_project_root += ['.git', '.hg', '.svn', '.bzr', '_darcs', '_FOSSIL_', '.fslckout']
 endif
-let g:gutentags_project_root_finder = ''
+
+let g:gutentags_project_root_finder = get(g:, 'gutentags_project_root_finder', '')
 
 let g:gutentags_project_info = get(g:, 'gutentags_project_info', [])
 call add(g:gutentags_project_info, {'type': 'python', 'file': 'setup.py'})