Skip to content

Commit

Permalink
Another attempt at making clear work with hopefully less side-effects.
Browse files Browse the repository at this point in the history
issue #15
  • Loading branch information
sedwards2009 committed Apr 3, 2018
1 parent a6b7fdf commit 1ffa660
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion extraterm/src/render_process/emulator/Term.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2593,7 +2593,7 @@ export class Emulator implements EmulatorApi {
}

private fillRight(x: number, y: number, ch: string = ' '): void {
const line = this._getRow(y);
const line = this._tryGetRow(y);
if (line === null) {
return;
}
Expand Down Expand Up @@ -2806,19 +2806,22 @@ export class Emulator implements EmulatorApi {
this.eraseRight(this.x, this.y);
j = this.y + 1;
for (; j < this.rows; j++) {
this._getRow(j);
this.eraseLine(j);
}
break;
case 1:
this.eraseLeft(this.x, this.y);
j = this.y;
while (j--) {
this._getRow(j);
this.eraseLine(j);
}
break;
case 2:
j = this.rows;
while (j--) {
this._getRow(j);
this.eraseLine(j);
}
break;
Expand Down

0 comments on commit 1ffa660

Please sign in to comment.