summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackson Moore <jacksonmoore@tuta.io>2026-09-04 12:43:05 +0200
committerJackson Moore <jacksonmoore@tuta.io>2026-09-04 12:43:05 +0200
commitfaa4a7a22a1e1022b4a826dd8713cd4a0ff4a37b (patch)
treeb70cd2fb1ad989bc2ee94372dd4dfdff4ee091f7
parente9c90e1617cc1236788c813f93f9040f333707fd (diff)
Use effective migration descriptor
-rw-r--r--lua/clever_f/feedback_service.lua2
-rw-r--r--tests/run.lua6
2 files changed, 8 insertions, 0 deletions
diff --git a/lua/clever_f/feedback_service.lua b/lua/clever_f/feedback_service.lua
index cbd8f9c..9c2cdc3 100644
--- a/lua/clever_f/feedback_service.lua
+++ b/lua/clever_f/feedback_service.lua
@@ -676,6 +676,8 @@ function FeedbackService:migrate_command(request)
anchor = request.destination,
target_plan = plan.target_plan,
motion_plan = plan,
+ descriptor = plan.descriptor,
+ endpoint_policy = plan.endpoint_policy,
window = window,
})
return {
diff --git a/tests/run.lua b/tests/run.lua
index e569cbb..e9c91b1 100644
--- a/tests/run.lua
+++ b/tests/run.lua
@@ -6507,6 +6507,12 @@ test("Direction-changing repeated TILL rebuilds feedback", function()
migration.reason
)
falsy(first.identity == migration.overlay.identity)
+ same(domain.Descriptor.TILL_BACKWARD, migration.overlay.descriptor)
+ local rebuilt = host:highlights()[migration.overlay.identity]
+ same(domain.Descriptor.TILL_BACKWARD, rebuilt.descriptor)
+ same(domain.EndpointPolicy.REGULAR, rebuilt.endpoint_policy)
+ same(domain.Position.new(1, 3), rebuilt.positions[1])
+ same(domain.Position.new(1, 5), rebuilt.positions[2])
same(nil, host:highlights()[first.identity])
same(1, #state.target_overlays)
end)