mirror of
https://github.com/embarklabs/neo-blessed.git
synced 2025-01-09 10:42:02 +00:00
do not render combining chars on iTerm2.
see: 2eb57cc72563f02a1303926f3d3ab13d8eea5a4b
This commit is contained in:
parent
46e9c52030
commit
b241e1a4df
@ -2418,6 +2418,10 @@ Element.prototype.parseContent = function(noTags) {
|
||||
// double-width chars will eat the next char after render. create a
|
||||
// blank character after it so it doesn't eat the real next char.
|
||||
content = content.replace(unicode.chars.all, '$1\x03');
|
||||
// iTerm2 cannot render combining characters properly.
|
||||
if (this.screen.program.isiTerm2) {
|
||||
content = content.replace(unicode.chars.combining, '');
|
||||
}
|
||||
} else {
|
||||
// no double-width: replace them with question-marks.
|
||||
content = content.replace(unicode.chars.all, '??');
|
||||
|
Loading…
x
Reference in New Issue
Block a user