changeset 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 89b41690f374
children 2bab5f618dbc
files autoload/gutentags.vim
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/autoload/gutentags.vim	Mon Apr 08 16:42:15 2019 +0900
+++ b/autoload/gutentags.vim	Sun May 05 22:10:53 2019 -0700
@@ -84,6 +84,7 @@
         let l:tag_path = g:gutentags_cache_dir . '/' .
                     \tr(l:tag_path, '\/: ', '---_')
         let l:tag_path = substitute(l:tag_path, '/\-', '/', '')
+        let l:tag_path = substitute(l:tag_path, '[\-_]*$', '', '')
     endif
     let l:tag_path = gutentags#normalizepath(l:tag_path)
     return l:tag_path