Mercurial > vim-gutentags
changeset 162:84dbc92c4243
Fix db path of 'gtags-cscope' module on Windows.
author | Pengtian Wang <ptwangplus@gmail.com> |
---|---|
date | Mon, 06 Feb 2017 18:28:06 +0800 |
parents | 40153c7a1887 |
children | 0f6605a9398b |
files | autoload/gutentags/gtags_cscope.vim |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/autoload/gutentags/gtags_cscope.vim Wed Jan 11 23:50:00 2017 -0800 +++ b/autoload/gutentags/gtags_cscope.vim Mon Feb 06 18:28:06 2017 +0800 @@ -52,7 +52,9 @@ function! gutentags#gtags_cscope#init(project_root) abort let l:db_path = gutentags#get_cachefile( \ a:project_root, g:gutentags_gtags_dbpath ) - let l:db_file = l:db_path . '/GTAGS' + let l:db_path = gutentags#stripslash(l:db_path) + let l:db_file = l:db_path . '/GTAGS' + let l:db_file = gutentags#normalizepath(l:db_file) if !isdirectory(l:db_path) call mkdir(l:db_path, 'p')