Skip to content

Commit

Permalink
Fix bad type check that caused rows to not refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Jan 8, 2018
1 parent c46304c commit 27a7182
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/utils/RenderDebouncer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ export class RenderDebouncer implements IDisposable {
public refresh(rowStart?: number, rowEnd?: number): void {
rowStart = rowStart || 0;
rowEnd = rowEnd || this._terminal.rows - 1;
this._rowStart = this._rowStart ? Math.min(this._rowStart, rowStart) : rowStart;
this._rowEnd = this._rowEnd ? Math.max(this._rowEnd, rowEnd) : rowEnd;
this._rowStart = this._rowStart !== null ? Math.min(this._rowStart, rowStart) : rowStart;
this._rowEnd = this._rowEnd !== null ? Math.max(this._rowEnd, rowEnd) : rowEnd;
console.log('saved rowStart', this._rowStart);

if (this._animationFrame) {
return;
Expand Down

0 comments on commit 27a7182

Please sign in to comment.