preservim / tagbar

Vim plugin that displays tags in a window, ordered by scope
https://preservim.github.io/tagbar
Other
6.13k stars 487 forks source link

Fix issue with jumping to a tag with special characters #649

Closed bravestarr closed 4 years ago

bravestarr commented 4 years ago

In C++, the name of the destructor of a class starts with a tilde(~) which is special when the option 'magic' is set. This will cause an error when jumping to a destructor. Calling search() in "very nomagic" environment can solve this problem no matter the option 'magic' is set or not.

alerque commented 4 years ago

Thanks for tracking this down and cotributing a fix @bravestarr, LGTM.