summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lua/clever_f/acquisition_service.lua5
-rw-r--r--tests/run.lua7
2 files changed, 9 insertions, 3 deletions
diff --git a/lua/clever_f/acquisition_service.lua b/lua/clever_f/acquisition_service.lua
index 103054a..e82adda 100644
--- a/lua/clever_f/acquisition_service.lua
+++ b/lua/clever_f/acquisition_service.lua
@@ -739,7 +739,10 @@ local function acquire_in_scope(record, request, scope)
interactive and acquisition.hide_cursor_on_cmdline
)
)
- if acquisition.mark_cursor then
+ if not interactive then
+ record.host:redraw("suppressed")
+ end
+ if acquisition.mark_cursor and interactive then
scope:set_cursor_marker(record.feedback:create_cursor_marker(
request.position,
current_window(record)
diff --git a/tests/run.lua b/tests/run.lua
index 9bb4b26..136231d 100644
--- a/tests/run.lua
+++ b/tests/run.lua
@@ -4984,7 +4984,8 @@ test("Interactive acquisition redraws after cursor marker creation", function()
nil,
domain.MacroState.new("q")
)
- same(0, #macro_host:redraws())
+ list_same({ "suppressed" }, macro_host:redraws())
+ same(0, map_size(macro_host:highlights()))
end)
test("Interactive acquisition creates enabled direct previews", function()
@@ -5690,7 +5691,9 @@ test("Macro acquisition skips direct planning and all redraws", function()
same("b", result.target.value)
same(0, direct_calls)
same(nil, service:last_temporary_scope().direct_marker)
- same(0, #host:redraws())
+ same(nil, service:last_temporary_scope().cursor_marker)
+ same(0, map_size(host:highlights()))
+ list_same({ "suppressed" }, host:redraws())
end)
test("Acquisition preserves descriptor writes after input failure", function()