mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
optimize widechar check.
This commit is contained in:
+2
-2
@@ -1039,7 +1039,7 @@ Terminal.prototype.refresh = function(start, end) {
|
||||
if (ch <= ' ') {
|
||||
out += ' ';
|
||||
} else {
|
||||
// if (wideChars.test(ch)) i++;
|
||||
// if (ch > '\uff00' && wideChars.test(ch)) i++;
|
||||
out += ch;
|
||||
}
|
||||
break;
|
||||
@@ -1242,7 +1242,7 @@ Terminal.prototype.write = function(data) {
|
||||
this.x++;
|
||||
this.updateRange(this.y);
|
||||
|
||||
// if (wideChars.test(ch)) {
|
||||
// if (ch > '\uff00' && wideChars.test(ch)) {
|
||||
// if (this.cols < 2) {
|
||||
// this.lines[this.y + this.ybase][this.x - 1][1] = ' ';
|
||||
// break;
|
||||
|
||||
Reference in New Issue
Block a user