Skip to content

Commit

Permalink
ok bug, squashed
Browse files Browse the repository at this point in the history
  • Loading branch information
kjloveless committed Nov 13, 2024
1 parent b5c4272 commit 0a6e15d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ function editorAppendRow(msg: string) {
function editorRowInsertChar(row: number, at: number, char: string) {
if (at < 0 || at > e.row[row].length) at = e.row[row].length;

e.row[row] = e.row[row].substring(0, at) + char + e.row[row].substring(at + 1);
e.row[row] = e.row[row].slice(0, at) + char + e.row[row].slice(at);
editorUpdateRow(row);
}

Expand Down

0 comments on commit 0a6e15d

Please sign in to comment.