mirror of
https://github.com/preservim/tagbar.git
synced 2025-12-10 08:23:57 +08:00
Escape tag name when removing it from a pseudo tag's scope path
This commit is contained in:
@ -2733,7 +2733,7 @@ function! s:create_pseudotag(name, parent, kind, typeinfo, fileinfo) abort
|
||||
let pseudotag = s:PseudoTag.New(a:name)
|
||||
let pseudotag.fields.kind = a:kind
|
||||
|
||||
let parentscope = substitute(curpath, a:name . '$', '', '')
|
||||
let parentscope = substitute(curpath, '\V' . a:name . '$', '', '')
|
||||
let parentscope = substitute(parentscope,
|
||||
\ '\V\^' . a:typeinfo.sro . '\$', '', '')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user