From a19b05f8139754069fdd2bf0387b6111f92905ac Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Mon, 8 Jan 2018 09:53:06 -0800 Subject: [PATCH] Fix bad type check that caused rows to not refresh --- src/utils/RenderDebouncer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/RenderDebouncer.ts b/src/utils/RenderDebouncer.ts index c494fb98..5a9c93d6 100644 --- a/src/utils/RenderDebouncer.ts +++ b/src/utils/RenderDebouncer.ts @@ -24,8 +24,8 @@ 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; if (this._animationFrame) { return;