summaryrefslogtreecommitdiff
path: root/lua/clever_f/motion_executor.lua
diff options
context:
space:
mode:
authorJackson Moore <jacksonmoore@tuta.io>2026-09-04 10:54:02 +0200
committerJackson Moore <jacksonmoore@tuta.io>2026-09-04 10:54:02 +0200
commit24aacfe6495320018bf73d071a66eda280869d77 (patch)
treee566830f8d45bc9a60b8929bb4f2f50ab8925e37 /lua/clever_f/motion_executor.lua
parent0668744a8f18edd1da4914f901bf6f108ab2fd81 (diff)
Preserve backward operator endpoints
Diffstat (limited to 'lua/clever_f/motion_executor.lua')
-rw-r--r--lua/clever_f/motion_executor.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/lua/clever_f/motion_executor.lua b/lua/clever_f/motion_executor.lua
index 7a0755b..4e972cd 100644
--- a/lua/clever_f/motion_executor.lua
+++ b/lua/clever_f/motion_executor.lua
@@ -222,7 +222,11 @@ function MotionExecutor:_execute_command(request)
then
host:set_operator_inclusive(true)
end
- host:apply_cursor(outcome.endpoint)
+ host:apply_cursor(outcome.endpoint, {
+ context = request.context,
+ descriptor = request.plan.descriptor,
+ origin = origin,
+ })
end
if not outcome.complete then
return domain.ActionOutcome.from_search(outcome, request.plan.descriptor)