mirror of
https://github.com/gryf/tagbar.git
synced 2025-12-17 11:30:28 +01:00
Fix prefix for tags with both access and file fields
This commit is contained in:
@@ -1261,16 +1261,13 @@ function! s:BaseTag._getPrefix() abort dict
|
||||
if g:tagbar_show_visibility
|
||||
if has_key(self.fields, 'access')
|
||||
let prefix .= get(s:visibility_symbols, self.fields.access, ' ')
|
||||
elseif has_key(self.fields, 'file')
|
||||
let prefix .= s:visibility_symbols.private
|
||||
else
|
||||
let prefix .= ' '
|
||||
endif
|
||||
endif
|
||||
|
||||
" File-restricted scoping
|
||||
if has_key(self.fields, 'file')
|
||||
let prefix .= '-'
|
||||
end
|
||||
|
||||
return prefix
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user