Skip to content

Commit 0a53ef9

Browse files
committed
Small fix
1 parent dff27c8 commit 0a53ef9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2265,7 +2265,7 @@ <h3>設定</h3>
22652265
let i = 0;
22662266
let count = beforeDeletionLength ? beforeDeletionLength - e.target.value.length : 0;
22672267
while (count > 0) {
2268-
count -= texts[cursor_pos[0]][cursor_pos[1] - i].length;
2268+
count -= texts[cursor_pos[0]][cursor_pos[1] - 1 - i].length;
22692269
i++;
22702270
}
22712271
let ev = new KeyboardEvent("keydown", {key: "Backspace", isComposing: false});

0 commit comments

Comments
 (0)