Skip to content

Commit

Permalink
Ensure scroll bar is refreshed after erase all in display
Browse files Browse the repository at this point in the history
Fixes #760
  • Loading branch information
Tyriar committed Jul 5, 2017
1 parent 479fb0e commit 7f5e72d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/InputHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,8 @@ export class InputHandler implements IInputHandler {
this._terminal.lines.trimStart(scrollBackSize);
this._terminal.ybase = Math.max(this._terminal.ybase - scrollBackSize, 0);
this._terminal.ydisp = Math.max(this._terminal.ydisp - scrollBackSize, 0);
// Force a scroll event to refresh viewport
this._terminal.scrollDisp(0);
}
break;
}
Expand Down

0 comments on commit 7f5e72d

Please sign in to comment.