Skip to content

Commit

Permalink
Merge pull request #2236 from Tyriar/fix_broken_tests
Browse files Browse the repository at this point in the history
Fix restore cursor related tests
  • Loading branch information
Tyriar committed Jun 16, 2019
2 parents 20809a0 + 9bb16e4 commit 8a59389
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/InputHandler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ describe('InputHandler', () => {
const terminal = new MockInputHandlingTerminal();
terminal.buffer.x = 1;
terminal.buffer.y = 2;
terminal.buffer.ybase = 0;
terminal.curAttrData.fg = 3;
const inputHandler = new InputHandler(terminal);
// Save cursor position
Expand Down
1 change: 0 additions & 1 deletion src/common/buffer/Buffer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ export class Buffer implements IBuffer {
public clear(): void {
this.ydisp = 0;
this.ybase = 0;
this.savedY = 0;
this.y = 0;
this.x = 0;
this.lines = new CircularList<IBufferLine>(this._getCorrectBufferLength(this._rows));
Expand Down

0 comments on commit 8a59389

Please sign in to comment.