diff options
| author | Jackson Moore <jacksonmoore@tuta.io> | 2026-09-04 12:31:55 +0200 |
|---|---|---|
| committer | Jackson Moore <jacksonmoore@tuta.io> | 2026-09-04 12:31:55 +0200 |
| commit | a32ac60fad13db062f23478e8da74d5dbba0edc8 (patch) | |
| tree | 007666e4cfdaf2af7b7c95ca357bc77e049693ce /lua | |
| parent | d3b2783bf1ac2804336a7e1cfa02fe90e03488eb (diff) | |
Select persistent endpoint behavior
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/clever_f/feedback_service.lua | 6 |
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 |
