summaryrefslogtreecommitdiff
path: root/lua/clever_f
diff options
context:
space:
mode:
authorJackson Moore <jacksonmoore@tuta.io>2026-09-04 10:48:45 +0200
committerJackson Moore <jacksonmoore@tuta.io>2026-09-04 10:48:45 +0200
commit80206387c712c2ef78eb1ce6546aa3d3969d7bb8 (patch)
treef7c1ef34405dee4fc013c93ac21c82a411eff0c7 /lua/clever_f
parentecddf5c243a63d08b8c595ace160128c279e03b6 (diff)
Preserve history after incomplete moves
Diffstat (limited to 'lua/clever_f')
-rw-r--r--lua/clever_f/motion_executor.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/lua/clever_f/motion_executor.lua b/lua/clever_f/motion_executor.lua
index 0c49ce1..3d6caf5 100644
--- a/lua/clever_f/motion_executor.lua
+++ b/lua/clever_f/motion_executor.lua
@@ -138,6 +138,9 @@ function MotionExecutor:_execute_command(request)
if outcome.successful_steps > 0 then
host:apply_cursor(outcome.endpoint)
end
+ if not outcome.complete then
+ return domain.ActionOutcome.from_search(outcome, request.plan.descriptor)
+ end
return domain.ActionOutcome.from_search(outcome, request.plan.descriptor)
end