summaryrefslogtreecommitdiff
path: root/lua/clever_f/destination_engine.lua
diff options
context:
space:
mode:
authorJackson Moore <jacksonmoore@tuta.io>2026-09-04 10:19:39 +0200
committerJackson Moore <jacksonmoore@tuta.io>2026-09-04 10:19:39 +0200
commit35b29e0a23efe5fe9660ac53154cbe85b409a754 (patch)
tree7b2f304644668163e8b588aa7eadacd8ea71e2ea /lua/clever_f/destination_engine.lua
parent272c9cef5d40c9100968e1250036d74fa9868f71 (diff)
Bound target start enumeration
Diffstat (limited to 'lua/clever_f/destination_engine.lua')
-rw-r--r--lua/clever_f/destination_engine.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/lua/clever_f/destination_engine.lua b/lua/clever_f/destination_engine.lua
index c17dc83..2ff4c7a 100644
--- a/lua/clever_f/destination_engine.lua
+++ b/lua/clever_f/destination_engine.lua
@@ -60,12 +60,16 @@ local function calculation_inputs(view, origin, plan, count, first_move)
}
end
-local function next_matching_start(request, origin)
- local candidates = request.view:iter_strict(
+local function candidate_starts(request, origin)
+ return request.view:iter_strict(
origin,
request.plan.descriptor.direction,
request.bounds
)
+end
+
+local function next_matching_start(request, origin)
+ local candidates = candidate_starts(request, origin)
while true do
local position, character = candidates()