mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Merge pull request #431 from Tyriar/427_refresh_scroll_on_buffer_change
Sync scroll bar when alt/normal buffer is switched in
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user