mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-05 07:52:03 +00:00
docs: share fix diff bugs
This commit is contained in:
parent
749e7838a4
commit
8a3e581edc
3 changed files with 28 additions and 42 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { type Component, createMemo } from "solid-js"
|
||||
import { parsePatch } from "diff"
|
||||
import { createMemo } from "solid-js"
|
||||
import { ContentCode } from "./content-code"
|
||||
import styles from "./content-diff.module.css"
|
||||
|
||||
|
|
@ -90,8 +90,8 @@ export function ContentDiff(props: Props) {
|
|||
i++
|
||||
} else if (prefix === " ") {
|
||||
diffRows.push({
|
||||
left: content,
|
||||
right: content,
|
||||
left: content === "" ? " " : content,
|
||||
right: content === "" ? " " : content,
|
||||
type: "unchanged",
|
||||
})
|
||||
i++
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue