1
0
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:
Jan Larres
2015-02-02 16:30:10 +13:00
parent e62d3444e9
commit 00dfa82b00

View File

@@ -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