diff autoload/gutentags.vim @ 173:2cf3fb66285b

Use absolute paths for `ctags` if the tags file is not local.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 21 Feb 2017 12:36:45 -0800
parents 95afd985a4c3
children 721cba3cd20d c2e0dac0be42
line wrap: on
line diff
--- a/autoload/gutentags.vim	Sun Feb 19 20:47:50 2017 -0800
+++ b/autoload/gutentags.vim	Tue Feb 21 12:36:45 2017 -0800
@@ -76,7 +76,8 @@
 " Returns whether a path is rooted.
 if has('win32') || has('win64')
 function! gutentags#is_path_rooted(path) abort
-  return len(a:path) >= 2 && a:path[1] == ':'
+  return len(a:path) >= 2 && (
+        \a:path[0] == '/' || a:path[0] == '\' || a:path[1] == ':')
 endfunction
 else
 function! gutentags#is_path_rooted(path) abort