amend 'dw' motion in line with previous commit

This commit is contained in:
2025-12-27 07:32:22 +00:00
parent 9846750c51
commit 742b571b4e
6 changed files with 93 additions and 28 deletions

View File

@@ -754,6 +754,18 @@ struct
(* assert *)
Expect.isTrue (#cursorIdx app = 4)
end)
, test "moves cursor to character after newline" (fn _ =>
let
(* arrange *)
val app = TestUtils.init "hello\nworld\nagain\n"
val app = AppWith.idx (app, 0)
(* act *)
val app = TestUtils.update (app, CHAR_EVENT #"w")
in
(* assert *)
Expect.isTrue (#cursorIdx app = 6)
end)
]
val WMove = describe "move motion 'W'"