summaryrefslogtreecommitdiff
path: root/lua/clever_f
diff options
context:
space:
mode:
authorJackson Moore <jacksonmoore@tuta.io>2026-09-04 12:31:55 +0200
committerJackson Moore <jacksonmoore@tuta.io>2026-09-04 12:31:55 +0200
commita32ac60fad13db062f23478e8da74d5dbba0edc8 (patch)
tree007666e4cfdaf2af7b7c95ca357bc77e049693ce /lua/clever_f
parentd3b2783bf1ac2804336a7e1cfa02fe90e03488eb (diff)
Select persistent endpoint behavior
Diffstat (limited to 'lua/clever_f')
-rw-r--r--lua/clever_f/feedback_service.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/lua/clever_f/feedback_service.lua b/lua/clever_f/feedback_service.lua
index b6552ef..9703502 100644
--- a/lua/clever_f/feedback_service.lua
+++ b/lua/clever_f/feedback_service.lua
@@ -324,11 +324,17 @@ function FeedbackService:build_persistent(specification)
if specification.motion_plan.target_plan ~= specification.target_plan then
fail("persistent feedback must reuse the movement TargetPlan", 2)
end
+ local descriptor = specification.descriptor
+ or specification.motion_plan.descriptor
+ local endpoint_policy = specification.endpoint_policy
+ or specification.motion_plan.endpoint_policy
return {
context = context,
anchor = domain.Position.coerce(specification.anchor),
target_plan = specification.target_plan,
motion_plan = specification.motion_plan,
+ descriptor = domain.Descriptor.from_string(descriptor),
+ endpoint_policy = domain.EndpointPolicy.from_string(endpoint_policy),
window = specification.window,
}
end