diff options
| author | Jackson Moore <jacksonmoore@tuta.io> | 2026-09-04 10:28:33 +0200 |
|---|---|---|
| committer | Jackson Moore <jacksonmoore@tuta.io> | 2026-09-04 10:28:33 +0200 |
| commit | 1a09a8909859d5c4b7c64184912cb60dc9e23a97 (patch) | |
| tree | 1d24f7b66b7507995c6f502676d086f72ec209da /lua/clever_f/destination_engine.lua | |
| parent | fafe4dfe8ae5ef86ead6667f6d821c32cb5e13ed (diff) | |
Return complete destination outcomes
Diffstat (limited to 'lua/clever_f/destination_engine.lua')
| -rw-r--r-- | lua/clever_f/destination_engine.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lua/clever_f/destination_engine.lua b/lua/clever_f/destination_engine.lua index e039851..eb41d47 100644 --- a/lua/clever_f/destination_engine.lua +++ b/lua/clever_f/destination_engine.lua @@ -151,7 +151,6 @@ function DestinationEngine:calculate(view, origin, plan, count, first_move) local request = calculation_inputs(view, origin, plan, count, first_move) local current_origin = request.origin local successful_steps = 0 - local boundary_reached = false while successful_steps < request.count.value do local destination = next_destination( @@ -160,14 +159,13 @@ function DestinationEngine:calculate(view, origin, plan, count, first_move) till_equality_allowed(request, successful_steps) ) if destination == nil then - boundary_reached = true break end current_origin = destination successful_steps = successful_steps + 1 end - if not boundary_reached then + if successful_steps == request.count.value then return domain.SearchOutcome.complete(current_origin, successful_steps) end return domain.SearchOutcome.boundary_before_any(request.origin) |
