From 56421ccc7b88ab0b92ea6d5b192cb04505e3fa46 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sun, 26 Apr 2015 07:17:39 -0700 Subject: [PATCH] fix VTE again - two chars for surrogate wide replacement. --- lib/widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/widget.js b/lib/widget.js index d3ac64e..aadbc22 100644 --- a/lib/widget.js +++ b/lib/widget.js @@ -2428,7 +2428,7 @@ Element.prototype.parseContent = function(noTags) { // VTE cannot display double-width chars that are also // surrogate pairs: It miscalculates the width of the chars. if (this.screen.program.isVTE) { - content = content.replace(unicode.chars.swide, '?'); + content = content.replace(unicode.chars.swide, '??'); } } else { // no double-width: replace them with question-marks.