changeset 57:6c98089d9ffa

Merge pull request #22 from dnhgff/autochdir-workflow call gutentags#get_project_root with absolute path to current file
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 29 Apr 2015 21:24:16 -0700
parents 50d2a7cbf7c8 (current diff) fca5dc8c8022 (diff)
children f00ae5797e48 2d407e62d254
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/autoload/gutentags.vim	Sat Apr 11 09:34:34 2015 -0700
+++ b/autoload/gutentags.vim	Wed Apr 29 21:24:16 2015 -0700
@@ -98,7 +98,7 @@
     " Try and find what tags file we should manage.
     call gutentags#trace("Scanning buffer '" . bufname('%') . "' for gutentags setup...")
     try
-        let b:gutentags_root = gutentags#get_project_root(expand('%:h'))
+        let b:gutentags_root = gutentags#get_project_root(expand('%:p:h', 1))
         if filereadable(b:gutentags_root . '/.notags')
             call gutentags#trace("'notags' file found... no gutentags support.")
             return