mirror of
https://github.com/gryf/tagbar.git
synced 2025-12-17 11:30:28 +01:00
Merge pull request #575 from majutsushi/termencoding
Test whether &termencoding even exists before use
This commit is contained in:
@@ -86,7 +86,7 @@ call s:setup_options()
|
||||
|
||||
if !exists('g:tagbar_iconchars')
|
||||
if has('multi_byte') && has('unix') && &encoding ==# 'utf-8' &&
|
||||
\ (empty(&termencoding) || &termencoding ==# 'utf-8')
|
||||
\ (!exists('+termencoding') || empty(&termencoding) || &termencoding ==# 'utf-8')
|
||||
let g:tagbar_iconchars = ['▶', '▼']
|
||||
else
|
||||
let g:tagbar_iconchars = ['+', '-']
|
||||
|
||||
Reference in New Issue
Block a user