Fix logic error that breaks everything

This commit is contained in:
Timothy Warren 2023-11-16 11:20:30 -05:00
parent f966ebf4ac
commit 1fc6e8f75f
1 changed files with 1 additions and 1 deletions

View File

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