summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJackson Moore <jacksonmoore@tuta.io>2026-09-04 13:44:39 +0200
committerJackson Moore <jacksonmoore@tuta.io>2026-09-04 13:44:39 +0200
commit50f35d681f48a59a77a009f201fd4cf3a287904c (patch)
treee735164fa13f4325acfc3c3da055f7e9ab5b7082 /tests
parent75879e3356685a145fab752c0b3365faa832f8d4 (diff)
Keep Escape outside timer refresh
Diffstat (limited to 'tests')
-rw-r--r--tests/run.lua22
1 files changed, 22 insertions, 0 deletions
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