stop double-width chars from breaking words when wrapped.
This commit is contained in:
parent
edf22cd6cd
commit
758eef133c
|
@ -2424,7 +2424,7 @@ Element.prototype.parseContent = function(noTags) {
|
|||
if (this.screen.fullUnicode) {
|
||||
// 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.wideChars, '$1 ');
|
||||
content = content.replace(unicode.wideChars, '$1_');
|
||||
} else {
|
||||
// no double-width: replace them with question-marks.
|
||||
content = content.replace(unicode.wideChars, '??');
|
||||
|
|
|
@ -24,11 +24,11 @@ var JUAN = '鹃';
|
|||
// ? String.fromCodePoint(0x675c)
|
||||
// : String.fromCharCode(0x675c);
|
||||
|
||||
// var DOUBLE = DU;
|
||||
var DOUBLE = DU;
|
||||
// var DOUBLE = String.fromCodePoint(0x1F250);
|
||||
|
||||
// one flew over the 杜鹃's nest.
|
||||
var DOUBLE = DU + JUAN;
|
||||
// var DOUBLE = DU + JUAN;
|
||||
|
||||
// var SURROGATE_DOUBLE = '𰀀';
|
||||
var SURROGATE_DOUBLE = String.fromCodePoint
|
||||
|
|
Loading…
Reference in New Issue