]> git.proxmox.com Git - mirror_xterm.js.git/blobdiff - src/xterm.js
Merge branch 'master' into alt-selection
[mirror_xterm.js.git] / src / xterm.js
index bf7c95d45962081c5d83a98eb88d21e793cb76c0..a3f425d1aa797ced5bff82f4d4184f091b7c3c26 100644 (file)
@@ -1941,6 +1941,9 @@ Terminal.prototype.resize = function(x, y) {
     ch = [this.defAttr, ' ', 1]; // does xterm use the default attr?
     i = this.buffer.lines.length;
     while (i--) {
+      if (this.buffer.lines.get(i) === undefined) {
+        this.buffer.lines.set(i, this.blankLine());
+      }
       while (this.buffer.lines.get(i).length < x) {
         this.buffer.lines.get(i).push(ch);
       }