comparison autoload/gutentags.vim @ 98:d645125192aa

Fix more problems with paths and spaces in them.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 25 Feb 2016 21:04:46 -0800
parents b9965d1288c3
children e9ef45f763d4
comparison
equal deleted inserted replaced
97:794ee111bce6 98:d645125192aa
119 let l:tag_path = gutentags#stripslash(a:root_dir) . '/' . a:filename 119 let l:tag_path = gutentags#stripslash(a:root_dir) . '/' . a:filename
120 if g:gutentags_cache_dir != "" 120 if g:gutentags_cache_dir != ""
121 " Put the tag file in the cache dir instead of inside the 121 " Put the tag file in the cache dir instead of inside the
122 " projet root. 122 " projet root.
123 let l:tag_path = g:gutentags_cache_dir . '/' . 123 let l:tag_path = g:gutentags_cache_dir . '/' .
124 \tr(l:tag_path, '\/:', '---') 124 \tr(l:tag_path, '\/: ', '---_')
125 let l:tag_path = substitute(l:tag_path, '/\-', '/', '') 125 let l:tag_path = substitute(l:tag_path, '/\-', '/', '')
126 endif 126 endif
127 let l:tag_path = gutentags#normalizepath(l:tag_path) 127 let l:tag_path = gutentags#normalizepath(l:tag_path)
128 return l:tag_path 128 return l:tag_path
129 endfunction 129 endfunction