Merge branch 'master' into 818_fix_save_restore_cursor

This commit is contained in:
Daniel Imms
2017-07-28 08:33:52 -07:00
committed by GitHub
4 changed files with 1149 additions and 955 deletions
+3
View 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);
}