comparison 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
comparison
equal deleted inserted replaced
172:02a94ff0db57 173:2cf3fb66285b
74 endfunction 74 endfunction
75 75
76 " Returns whether a path is rooted. 76 " Returns whether a path is rooted.
77 if has('win32') || has('win64') 77 if has('win32') || has('win64')
78 function! gutentags#is_path_rooted(path) abort 78 function! gutentags#is_path_rooted(path) abort
79 return len(a:path) >= 2 && a:path[1] == ':' 79 return len(a:path) >= 2 && (
80 \a:path[0] == '/' || a:path[0] == '\' || a:path[1] == ':')
80 endfunction 81 endfunction
81 else 82 else
82 function! gutentags#is_path_rooted(path) abort 83 function! gutentags#is_path_rooted(path) abort
83 return !empty(a:path) && a:path[0] == '/' 84 return !empty(a:path) && a:path[0] == '/'
84 endfunction 85 endfunction