1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-17 11:30:28 +01:00

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

@@ -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 '[^-+#▶▼(* ]\+\(\*\? :\)\@='