Sync scroll bar when alt/normal buffer is switched in

Fixes #427
This commit is contained in:
Daniel Imms
2016-12-29 03:55:36 -08:00
parent df83298c54
commit 2bfbdb1c06
+2
View File
@@ -4144,6 +4144,7 @@ Terminal.prototype.setMode = function(params) {
// charsets: this.charsets
};
this.reset();
this.viewport.syncScrollArea();
this.normal = normal;
this.showCursor();
}
@@ -4324,6 +4325,7 @@ Terminal.prototype.resetMode = function(params) {
// this.y = this.savedY;
// }
this.refresh(0, this.rows - 1);
this.viewport.syncScrollArea();
this.showCursor();
}
break;