Check for termencoding just in case

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

No files matched your search

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