mirror of
https://github.com/preservim/tagbar.git
synced 2025-02-13 00:09:29 +08:00
Check for termencoding just in case
This commit is contained in:
parent
d256c9976b
commit
3fdfe14ddb
|
@ -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
|
||||
|
|
|
@ -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 '[^-+#▶▼(* ]\+\(\*\? :\)\@='
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user