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

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