1
0
mirror of https://github.com/gryf/tagbar.git synced 2026-02-12 03:35:47 +01:00

Use 'visibility' instead of 'access' everywhere exclusively

This commit is contained in:
Jan Larres
2012-11-22 18:05:59 +13:00
parent 576d6e6dea
commit 0ab07ac566
3 changed files with 19 additions and 15 deletions

View File

@@ -61,7 +61,7 @@ let s:window_expanded = 0
let s:compare_typeinfo = {}
let s:access_symbols = {
let s:visibility_symbols = {
\ 'public' : '+',
\ 'protected' : '#',
\ 'private' : '-'
@@ -1207,8 +1207,9 @@ function! s:BaseTag._getPrefix() abort dict
else
let prefix = ' '
endif
" Visibility is called 'access' in the ctags output
if has_key(self.fields, 'access')
let prefix .= get(s:access_symbols, self.fields.access, ' ')
let prefix .= get(s:visibility_symbols, self.fields.access, ' ')
else
let prefix .= ' '
endif