From 9aefbecb543994781a6fe0b9c147071013a70dca Mon Sep 17 00:00:00 2001 From: Connor Peet Date: Fri, 1 Nov 2024 15:37:32 -0700 Subject: [PATCH] fix: ctrl+g scroll state being lost when restoring editor (#545) Fixes #458 --- media/editor/state.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/media/editor/state.ts b/media/editor/state.ts index 05134f3..ec6630a 100644 --- a/media/editor/state.ts +++ b/media/editor/state.ts @@ -272,6 +272,7 @@ export const offset = atom({ registerHandler(MessageType.GoToOffset, msg => { const s = fx.getLoadable(columnWidth).getValue(); + vscode.setState({ ...vscode.getState(), offset: msg.offset }); fx.setSelf(startOfRowContainingByte(msg.offset, s)); }); },