From 916592836fd92dbb7d6c498c26ffd83fa290384e Mon Sep 17 00:00:00 2001 From: Jackson Moore Date: Fri, 4 Sep 2026 11:59:36 +0200 Subject: Redraw interactive direct previews --- tests/run.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests/run.lua') diff --git a/tests/run.lua b/tests/run.lua index 80294bb..8bc6ba0 100644 --- a/tests/run.lua +++ b/tests/run.lua @@ -5001,6 +5001,17 @@ test("Interactive acquisition creates enabled direct previews", function() same(1, #marker.positions) same(domain.Position.new(1, 4), marker.positions[1]) same(marker.identity, state:temporary_overlay_identities()[1]) + list_same({ "screen" }, host:redraws()) + local create_index + local redraw_index + for index, operation in ipairs(host:operations()) do + if operation.operation == "create_highlight" then + create_index = index + elseif operation.operation == "redraw" then + redraw_index = index + end + end + truthy(redraw_index > create_index) fresh_sequence_state() local macro_host = MemoryHost.new({ -- cgit v1.2.3