do not render combining chars on iTerm2.

see: 2eb57cc72563f02a1303926f3d3ab13d8eea5a4b
This commit is contained in:
Christopher Jeffrey 2015-04-27 15:07:19 -07:00
parent 46e9c52030
commit b241e1a4df

View File

@ -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, '??');