From 96bc4e935a986196af4ad92fb0bb9b0cc5bd1d59 Mon Sep 17 00:00:00 2001 From: Test Date: Thu, 5 Mar 2026 12:57:16 +0100 Subject: [PATCH] fix: enable line wrapping in raw editor Long lines now wrap to the next visual line instead of scrolling horizontally off-screen, matching expected behavior. Co-Authored-By: Claude Opus 4.6 --- src/hooks/useCodeMirror.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hooks/useCodeMirror.ts b/src/hooks/useCodeMirror.ts index 3b7f4417..30a49792 100644 --- a/src/hooks/useCodeMirror.ts +++ b/src/hooks/useCodeMirror.ts @@ -91,6 +91,7 @@ export function useCodeMirror( extensions: [ lineNumbers(), highlightActiveLine(), + EditorView.lineWrapping, history(), keymap.of([...defaultKeymap, ...historyKeymap]), buildSaveKeymap(callbacksRef),