]> git.proxmox.com Git - mirror_xterm.js.git/commitdiff
optimize widechar check.
authorChristopher Jeffrey <chjjeffrey@gmail.com>
Sat, 10 Aug 2013 22:21:57 +0000 (17:21 -0500)
committerChristopher Jeffrey <chjjeffrey@gmail.com>
Sat, 10 Aug 2013 22:26:02 +0000 (17:26 -0500)
lib/term.js

index 91c926840d272324101df8fd38161b9ce1a9abe9..74a73911100cbbd3400dd50c14f89da3ac468bfc 100644 (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;