From 7ef910ae30fe29cc3697f1fcc89795981969ce7a Mon Sep 17 00:00:00 2001 From: Caleb Foust Date: Wed, 22 Nov 2023 06:59:47 -0500 Subject: [PATCH] fix: use moveCursor for jump movement --- pkg/mux/screen/replay/jumps.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/mux/screen/replay/jumps.go b/pkg/mux/screen/replay/jumps.go index 121b8349..b2833769 100644 --- a/pkg/mux/screen/replay/jumps.go +++ b/pkg/mux/screen/replay/jumps.go @@ -68,10 +68,12 @@ func (r *Replay) handleJump(needle string, isForward bool, isTo bool) (taro.Mode } } - r.cursor = r.termToViewport(geom.Vec2{ + newPos := geom.Vec2{ R: oldPos.R, C: newCol, - }) + } + r.moveCursor(newPos) + r.desiredCol = r.termToViewport(newPos).C return r, nil }