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