Skip to content

Commit

Permalink
[replay-] ensure loaded/synced before moving cursor #2102
Browse files Browse the repository at this point in the history
  • Loading branch information
saulpw committed Nov 3, 2023
1 parent ab136cf commit 0df7fde
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions visidata/cmdlog.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,10 @@ def replay_cancel(vd):
@VisiData.api
def moveToReplayContext(vd, r, vs):
'set the sheet/row/col to the values in the replay row'
vs.ensureLoaded()
vd.sync()
vd.clearCaches()

if r.row not in [None, '']:
vs.moveToRow(r.row) or vd.error(f'no "{r.row}" row on {vs}')

Expand Down

0 comments on commit 0df7fde

Please sign in to comment.