diff options
| author | Jackson Moore <jacksonmoore@tuta.io> | 2026-09-04 10:20:59 +0200 |
|---|---|---|
| committer | Jackson Moore <jacksonmoore@tuta.io> | 2026-09-04 10:20:59 +0200 |
| commit | 51d029e037f233e3239d426d151630ec4897d4fb (patch) | |
| tree | 91617e922914ee79e548d529ad8ac5ac327e75fd /lua | |
| parent | bd0a050c72ece85e071abe176962b256232082b8 (diff) | |
Transform forward TILL destinations
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/clever_f/destination_engine.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lua/clever_f/destination_engine.lua b/lua/clever_f/destination_engine.lua index e0ddcca..6d9ceca 100644 --- a/lua/clever_f/destination_engine.lua +++ b/lua/clever_f/destination_engine.lua @@ -83,9 +83,13 @@ local function next_matching_start(request, origin) end local function regular_destination(request, target_position) - if request.plan.descriptor.family == domain.Family.FIND then + local descriptor = request.plan.descriptor + if descriptor.family == domain.Family.FIND then return target_position end + if descriptor.direction == domain.Direction.FORWARD then + return request.view:predecessor(target_position) + end return target_position end |
