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

fixed encoding bug of balloon

This commit is contained in:
wuhy
2017-09-18 14:53:48 +08:00
parent 3e417256e8
commit cfabd89c0f

View File

@@ -3182,7 +3182,15 @@ function! TagbarBalloonExpr() abort
return ''
endif
return taginfo.getPrototype(0)
let prototype = taginfo.getPrototype(0)
if has('multi_byte')
if g:tagbar_systemenc != &encoding
let prototype = iconv(prototype, &encoding, g:tagbar_systemenc)
elseif $LANG != ''
let prototype = iconv(prototype, &encoding, $LANG)
endif
endif
return prototype
endfunction
" Autoload functions {{{1