diff options
| author | Aiden Cline <[email protected]> | 2025-11-16 01:14:49 -0600 |
|---|---|---|
| committer | Aiden Cline <[email protected]> | 2025-11-16 01:14:49 -0600 |
| commit | 0d05238ee602a018f7745da81aea72535892e2b5 (patch) | |
| tree | 47e206ae6e4d2a0a4fa1bc3388dd0c395f8ede3a /packages | |
| parent | 9b8a7da1e6bdc972b912d67502ae93a191836712 (diff) | |
| download | opencode-0d05238ee602a018f7745da81aea72535892e2b5.tar.gz opencode-0d05238ee602a018f7745da81aea72535892e2b5.zip | |
fix: initial val
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/opencode/src/cli/cmd/tui/routes/session/index.tsx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx index 500038f35..de1dd7273 100644 --- a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx +++ b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx @@ -1225,9 +1225,7 @@ ToolRegistry.register<typeof WriteTool>({ container: "block", render(props) { const { theme, syntax } = useTheme() - const lines = createMemo(() => { - return props.input.content?.split("\n") ?? [] - }) + const lines = createMemo(() => props.input.content?.split("\n") ?? [], [] as string[]) const code = createMemo(() => { if (!props.input.content) return "" const text = props.input.content |
