From 1fc6e8f75f4ca8d1953b377103c436ece94e7e2a Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Thu, 16 Nov 2023 11:20:30 -0500 Subject: [PATCH] Fix logic error that breaks everything --- src/common/editor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/editor.ts b/src/common/editor.ts index 7131233..2a4c1f7 100644 --- a/src/common/editor.ts +++ b/src/common/editor.ts @@ -142,7 +142,7 @@ export class Editor { private drawRows(): void { for (let y = 0; y < this.#screen.rows; y++) { - if (this.#document.numRows < y) { + if (y >= this.#document.numRows) { this.drawPlaceholderRow(y); } else { this.drawFileRow(y);