comparison autoload/gutentags.vim @ 246:97723c1818e0

Strip any `-` characters left at the end of a tag-file path.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 05 May 2019 22:10:53 -0700
parents d3f9a92399d1
children d264db0126c2
comparison
equal deleted inserted replaced
245:89b41690f374 246:97723c1818e0
82 " Put the tag file in the cache dir instead of inside the 82 " Put the tag file in the cache dir instead of inside the
83 " project root. 83 " project root.
84 let l:tag_path = g:gutentags_cache_dir . '/' . 84 let l:tag_path = g:gutentags_cache_dir . '/' .
85 \tr(l:tag_path, '\/: ', '---_') 85 \tr(l:tag_path, '\/: ', '---_')
86 let l:tag_path = substitute(l:tag_path, '/\-', '/', '') 86 let l:tag_path = substitute(l:tag_path, '/\-', '/', '')
87 let l:tag_path = substitute(l:tag_path, '[\-_]*$', '', '')
87 endif 88 endif
88 let l:tag_path = gutentags#normalizepath(l:tag_path) 89 let l:tag_path = gutentags#normalizepath(l:tag_path)
89 return l:tag_path 90 return l:tag_path
90 endfunction 91 endfunction
91 92