mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
tui: fix code diff display by trimming whitespace to prevent rendering issues
This commit is contained in:
parent
5cfec2ef9d
commit
76b303c43f
1 changed files with 1 additions and 1 deletions
|
|
@ -790,7 +790,7 @@ ToolRegistry.register<typeof EditTool>({
|
|||
const code = createMemo(() => {
|
||||
if (!props.metadata.diff) return ""
|
||||
const text = props.metadata.diff.split("\n").slice(5).join("\n")
|
||||
return text
|
||||
return text.trim()
|
||||
})
|
||||
return (
|
||||
<>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue