From 0a6e15d212416028bede3b0182b2c374698e1dc9 Mon Sep 17 00:00:00 2001 From: Kyle Loveless Date: Wed, 13 Nov 2024 15:22:01 -0600 Subject: [PATCH] ok bug, squashed --- main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.ts b/main.ts index bde72c9..9dfe08c 100644 --- a/main.ts +++ b/main.ts @@ -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); }