Skip to content

Commit

Permalink
Merge pull request #1995 from termius/fix_csi_scroll_down
Browse files Browse the repository at this point in the history
Fix CSI scroll down handler
  • Loading branch information
Tyriar authored Apr 4, 2019
2 parents 2023b5b + 68e3d7f commit e402dba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/InputHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ export class InputHandler extends Disposable implements IInputHandler {

while (param--) {
buffer.lines.splice(buffer.ybase + buffer.scrollBottom, 1);
buffer.lines.splice(buffer.ybase + buffer.scrollBottom, 0, buffer.getBlankLine(DEFAULT_ATTR));
buffer.lines.splice(buffer.ybase + buffer.scrollTop, 0, buffer.getBlankLine(DEFAULT_ATTR));
}
// this.maxRange();
this._terminal.updateRange(buffer.scrollTop);
Expand Down

0 comments on commit e402dba

Please sign in to comment.