Skip to content

Commit

Permalink
Merge pull request xtermjs#431 from Tyriar/427_refresh_scroll_on_buff…
Browse files Browse the repository at this point in the history
…er_change

Sync scroll bar when alt/normal buffer is switched in
  • Loading branch information
Tyriar authored Dec 30, 2016
2 parents 445728b + 2bfbdb1 commit 23472e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/xterm.js
Original file line number Diff line number Diff line change
Expand Up @@ -4144,6 +4144,7 @@ Terminal.prototype.setMode = function(params) {
// charsets: this.charsets
};
this.reset();
this.viewport.syncScrollArea();
this.normal = normal;
this.showCursor();
}
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 23472e6

Please sign in to comment.