From 3521acb1ddeff755e4af9c385ec0b202fa3c3333 Mon Sep 17 00:00:00 2001 From: Jackson Moore Date: Fri, 4 Sep 2026 10:29:06 +0200 Subject: Return partial destination outcomes --- lua/clever_f/destination_engine.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lua') 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 -- cgit v1.2.3