Skip to content

Commit 9a6fe31

Browse files
committed
fix(test): line not jumping when word overflows to the next line
1 parent ed47e2f commit 9a6fe31

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

frontend/src/ts/controllers/input-controller.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -734,10 +734,9 @@ function handleChar(
734734
if (
735735
activeWordTopBeforeJump < newActiveTop &&
736736
!TestUI.lineTransition &&
737-
TestInput.input.current.length > 1 &&
738-
Config.indicateTypos !== "replace"
737+
TestInput.input.current.length > 1
739738
) {
740-
if (Config.mode === "zen") {
739+
if (Config.mode === "zen" || Config.indicateTypos === "replace") {
741740
if (!Config.showAllLines) void TestUI.lineJump(activeWordTopBeforeJump);
742741
} else {
743742
TestInput.input.current = TestInput.input.current.slice(0, -1);

0 commit comments

Comments
 (0)