summaryrefslogtreecommitdiff
path: root/lua/clever_f/motion_executor.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/clever_f/motion_executor.lua')
-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