Skip to content

Commit 2bfbdb1

Browse files
committed
Sync scroll bar when alt/normal buffer is switched in
Fixes #427
1 parent df83298 commit 2bfbdb1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/xterm.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4144,6 +4144,7 @@ Terminal.prototype.setMode = function(params) {
41444144
// charsets: this.charsets
41454145
};
41464146
this.reset();
4147+
this.viewport.syncScrollArea();
41474148
this.normal = normal;
41484149
this.showCursor();
41494150
}
@@ -4324,6 +4325,7 @@ Terminal.prototype.resetMode = function(params) {
43244325
// this.y = this.savedY;
43254326
// }
43264327
this.refresh(0, this.rows - 1);
4328+
this.viewport.syncScrollArea();
43274329
this.showCursor();
43284330
}
43294331
break;

0 commit comments

Comments
 (0)