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 {
|
private drawRows(): void {
|
||||||
for (let y = 0; y < this.#screen.rows; y++) {
|
for (let y = 0; y < this.#screen.rows; y++) {
|
||||||
if (this.#document.numRows < y) {
|
if (y >= this.#document.numRows) {
|
||||||
this.drawPlaceholderRow(y);
|
this.drawPlaceholderRow(y);
|
||||||
} else {
|
} else {
|
||||||
this.drawFileRow(y);
|
this.drawFileRow(y);
|
||||||
|
Loading…
Reference in New Issue
Block a user