Fix logic error that breaks everything
This commit is contained in:
parent
f966ebf4ac
commit
1fc6e8f75f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user