diff autoload/gutentags.vim @ 124:e2a43c03da79

Merge pull request #76 from GitHub.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 13 Jun 2016 18:46:35 -0700
parents 3763e9f412e7 76a4822aab76
children b6ec4caa22ff
line wrap: on
line diff
--- a/autoload/gutentags.vim	Mon Jun 13 18:44:29 2016 -0700
+++ b/autoload/gutentags.vim	Mon Jun 13 18:46:35 2016 -0700
@@ -166,7 +166,9 @@
         if g:gutentags_resolve_symlinks
             let l:buf_dir = fnamemodify(resolve(expand('%:p', 1)), ':p:h')
         endif
-        let b:gutentags_root = gutentags#get_project_root(l:buf_dir)
+        if !exists('b:gutentags_root')
+            let b:gutentags_root = gutentags#get_project_root(l:buf_dir)
+        endif
         if filereadable(b:gutentags_root . '/.notags')
             call gutentags#trace("'.notags' file found... no gutentags support.")
             return