mirror of
https://github.com/preservim/tagbar.git
synced 2025-02-14 21:42:46 +08:00
Merge pull request #444 from faster-mo/master
fixed encoding bug of balloon
This commit is contained in:
commit
2329c95063
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user