mirror of
https://github.com/embarklabs/neo-blessed.git
synced 2025-01-10 19:16:20 +00:00
fix VTE again - two chars for surrogate wide replacement.
This commit is contained in:
parent
0ea8c77dd8
commit
56421ccc7b
@ -2428,7 +2428,7 @@ Element.prototype.parseContent = function(noTags) {
|
|||||||
// VTE cannot display double-width chars that are also
|
// VTE cannot display double-width chars that are also
|
||||||
// surrogate pairs: It miscalculates the width of the chars.
|
// surrogate pairs: It miscalculates the width of the chars.
|
||||||
if (this.screen.program.isVTE) {
|
if (this.screen.program.isVTE) {
|
||||||
content = content.replace(unicode.chars.swide, '?');
|
content = content.replace(unicode.chars.swide, '??');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// no double-width: replace them with question-marks.
|
// no double-width: replace them with question-marks.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user