From 50f35d681f48a59a77a009f201fd4cf3a287904c Mon Sep 17 00:00:00 2001 From: Jackson Moore Date: Fri, 4 Sep 2026 13:44:39 +0200 Subject: Keep Escape outside timer refresh --- tests/run.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'tests') diff --git a/tests/run.lua b/tests/run.lua index d0838e8..6a49408 100644 --- a/tests/run.lua +++ b/tests/run.lua @@ -7634,6 +7634,28 @@ test("Fresh and repeated primary actions refresh highlight timeout", function() same(repeated_timer, coordinator:last_primary_resolution().highlight_timer) end) +test("Escape primary action starts no highlight timer", function() + local state = fresh_sequence_state() + local host = MemoryHost.new({ + input_packets = { + { kind = "special_key", name = "Escape", bytes = { 27 } }, + }, + configuration = { + mark_cursor = false, + mark_char = true, + highlight_timeout_ms = 30, + }, + }) + + local outcome = sequence_coordinator.new({ host = host }):primary("f") + + same(domain.ActionKind.ESCAPE, outcome.kind) + same(nil, state.highlight_timer) + for _, operation in ipairs(host:operations()) do + falsy(operation.operation == "start_timer") + end +end) + for _, item in ipairs(tests) do local ok, failure = xpcall(item.body, debug.traceback) if not ok then -- cgit v1.2.3