optimize widechar check.

This commit is contained in:
Christopher Jeffrey
2013-08-10 17:26:02 -05:00
parent 6efc4f0086
commit 848a838170
+2 -2
View File
@@ -1039,7 +1039,7 @@ Terminal.prototype.refresh = function(start, end) {
if (ch <= ' ') {
out += '&nbsp;';
} 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;