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);