changeset 163:0f6605a9398b

Merge pull request #112 from GitHub.
author Ludovic Chabant <ludovic@chabant.com>
date Fri, 17 Feb 2017 20:39:36 -0800
parents 97e1b266d045 (current diff) 84dbc92c4243 (diff)
children 28d4dae03f2a
files
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/autoload/gutentags/gtags_cscope.vim	Fri Feb 17 20:34:30 2017 -0800
+++ b/autoload/gutentags/gtags_cscope.vim	Fri Feb 17 20:39:36 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')