summaryrefslogtreecommitdiff
path: root/lua/clever_f/destination_engine.lua
diff options
context:
space:
mode:
authorJackson Moore <jacksonmoore@tuta.io>2026-09-04 10:29:06 +0200
committerJackson Moore <jacksonmoore@tuta.io>2026-09-04 10:29:06 +0200
commit3521acb1ddeff755e4af9c385ec0b202fa3c3333 (patch)
treed285987f430601b395a33e6fdb3247715ddf9d07 /lua/clever_f/destination_engine.lua
parent1a09a8909859d5c4b7c64184912cb60dc9e23a97 (diff)
Return partial destination outcomes
Diffstat (limited to 'lua/clever_f/destination_engine.lua')
-rw-r--r--lua/clever_f/destination_engine.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/lua/clever_f/destination_engine.lua b/lua/clever_f/destination_engine.lua
index eb41d47..027dd2a 100644
--- a/lua/clever_f/destination_engine.lua
+++ b/lua/clever_f/destination_engine.lua
@@ -168,6 +168,12 @@ function DestinationEngine:calculate(view, origin, plan, count, first_move)
if successful_steps == request.count.value then
return domain.SearchOutcome.complete(current_origin, successful_steps)
end
+ if successful_steps > 0 then
+ return domain.SearchOutcome.boundary_after_partial(
+ current_origin,
+ successful_steps
+ )
+ end
return domain.SearchOutcome.boundary_before_any(request.origin)
end