Skip to content

Commit

Permalink
fix backspacing to previous line
Browse files Browse the repository at this point in the history
  • Loading branch information
kjloveless committed Nov 18, 2024
1 parent 9911e99 commit 9128fee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ function editorDelRow(at: number) {

editorFreeRow(at);
e.row.splice(at, 1);
e.numRows--;
e.dirty++;
}

Expand Down Expand Up @@ -267,8 +268,8 @@ function editorDelChar() {
editorRowAppendString(e.cursorY - 1, e.row[e.cursorY]);
editorDelRow(e.cursorY);
e.cursorY--;
console.log(`\n\n\n\nhere: ${e.row}`)
Deno.exit();
//console.log(`\n\n\n\nhere: ${e.row}`)
//Deno.exit();
}
}

Expand Down

0 comments on commit 9128fee

Please sign in to comment.