From 9fb13bd2a82cb34d79c85e1d582c46183d9dc116 Mon Sep 17 00:00:00 2001 From: Connor Peet Date: Fri, 1 Nov 2024 14:23:30 -0700 Subject: [PATCH] fix: ctrl+g scroll state being lost when restoring editor 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 bad9444..20e3e42 100644 --- a/media/editor/state.ts +++ b/media/editor/state.ts @@ -264,6 +264,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)); }); },