From 00dfa82b00e734b453153564efeec933c48087f0 Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Mon, 2 Feb 2015 16:30:10 +1300 Subject: [PATCH] Fix prefix for tags with both access and file fields --- autoload/tagbar.vim | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index 8b97242..a3baca9 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -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