Check for termencoding just in case

This commit is contained in:
Jan Larres 2011-03-28 01:49:51 +13:00
parent d256c9976b
commit 3fdfe14ddb
2 changed files with 4 additions and 2 deletions

View File

@ -74,7 +74,8 @@ if !exists('g:tagbar_foldlevel')
let g:tagbar_foldlevel = 99
endif
if has('multi_byte') && &encoding == 'utf-8'
if has('multi_byte') && &encoding == 'utf-8' &&
\ (empty(&termencoding) || &termencoding == 'utf-8')
let s:icon_closed = '▶'
let s:icon_open = '▼'
else

View File

@ -9,7 +9,8 @@ if exists("b:current_syntax")
finish
endif
if has('multi_byte') && &encoding == 'utf-8'
if has('multi_byte') && &encoding == 'utf-8' &&
\ (empty(&termencoding) || &termencoding == 'utf-8')
syntax match TagbarKind '\([▶▼][-+ ]\)\@<=[^-+: ]\+[^:]\+$'
syntax match TagbarScope '[^-+#▶▼(* ]\+\(\*\? :\)\@='