From ebe532dc47dd094e33fa157a11ce192754eb473f Mon Sep 17 00:00:00 2001 From: Jackson Moore Date: Fri, 4 Sep 2026 13:42:11 +0200 Subject: Carry current first-move state --- tests/run.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'tests') diff --git a/tests/run.lua b/tests/run.lua index b577512..3c45045 100644 --- a/tests/run.lua +++ b/tests/run.lua @@ -7539,6 +7539,30 @@ test("Primary repetition restores stored-descriptor feedback before movement", f ) end) +test("Primary resolutions carry current first-move state", function() + local _, transitions = fresh_sequence_state() + local fresh_host = MemoryHost.new({ + buffer_lines = { "aba" }, + input_packets = { { kind = "text", text = "a" } }, + configuration = { + mark_cursor = false, + mark_char = false, + }, + }) + local fresh = sequence_coordinator.new({ host = fresh_host }):primary("t") + truthy(fresh.first_move) + + local landing = domain.Position.new(1, 3) + transitions:CommitCommandSuccess("n", landing, true) + local repeated_host = MemoryHost.new({ + buffer_lines = { "ababa" }, + cursor = landing, + configuration = { mark_char = false }, + }) + local repeated = sequence_coordinator.new({ host = repeated_host }):primary("t") + falsy(repeated.first_move) +end) + for _, item in ipairs(tests) do local ok, failure = xpcall(item.body, debug.traceback) if not ok then -- cgit v1.2.3