Skip to content

Commit

Permalink
Merge pull request #761 from Tyriar/760_erase_in_display_scroll_bar
Browse files Browse the repository at this point in the history
Ensure scroll bar is refreshed after erase all in display
  • Loading branch information
Tyriar committed Jul 13, 2017
2 parents 25fc01c + 9a358b2 commit 2ebc926
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 @@ -397,6 +397,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.emit('scroll', 0);
}
break;
}
Expand Down

0 comments on commit 2ebc926

Please sign in to comment.