diff options
| -rw-r--r-- | lua/clever_f/feedback_service.lua | 2 | ||||
| -rw-r--r-- | tests/run.lua | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/lua/clever_f/feedback_service.lua b/lua/clever_f/feedback_service.lua index b79a5e7..d5b7e74 100644 --- a/lua/clever_f/feedback_service.lua +++ b/lua/clever_f/feedback_service.lua @@ -474,6 +474,7 @@ function FeedbackService:build_persistent(specification) motion_plan = specification.motion_plan, descriptor = descriptor, endpoint_policy = endpoint_policy, + anchor_line = anchor.line, match_start_line = anchor.line, positions = M.persistent_match_positions( view, @@ -604,6 +605,7 @@ local function materialize_persistent(service, request) target_plan = request.target_plan, descriptor = request.descriptor, endpoint_policy = request.endpoint_policy, + anchor_line = request.anchor_line, match_start_line = request.match_start_line, }) request.group = "CleverFChar" diff --git a/tests/run.lua b/tests/run.lua index 99674a5..2fa6540 100644 --- a/tests/run.lua +++ b/tests/run.lua @@ -6066,6 +6066,8 @@ test("Persistent feedback stores overlay identity and anchor", function() same(persistent.identity, resource.identity) same("window-anchor", resource.window) same("CleverFChar", resource.group) + same(2, persistent.anchor_line) + same(2, host:highlights()[persistent.identity].anchor_line) same(2, resource.anchor_line) end) |
