Skip to content

Commit

Permalink
fix: use moveCursor for jump movement
Browse files Browse the repository at this point in the history
  • Loading branch information
cfoust committed Nov 22, 2023
1 parent 5704ab6 commit 7ef910a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/mux/screen/replay/jumps.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 7ef910a

Please sign in to comment.