mirror of
https://github.com/gryf/tagbar.git
synced 2026-10-08 23:02:32 +02:00
Check for tilde in cpp destructor (#732)
This commit is contained in:
1 parent
5f912e6ad0
commit
7cf83a4330
1 file changed
+2
-1
@@ -152,7 +152,8 @@ function! s:getDataType() abort dict
|
||||
endif
|
||||
|
||||
let line = getbufline(bufnr, self.fields.line)[0]
|
||||
let data_type = substitute(line, '\s*' . self.name . '.*', '', '')
|
||||
let tmp_name = substitute(self.name, "\\~", '', 'g')
|
||||
let data_type = substitute(line, '\s*' . tmp_name . '.*', '', '')
|
||||
|
||||
" Strip off the path if we have one along with any spaces prior to the
|
||||
" path
|
||||
|
||||
Reference in new issue
Block a user