summaryrefslogtreecommitdiffhomepage
path: root/packages/ui/src/components/diff.tsx
diff options
context:
space:
mode:
authorAdam <[email protected]>2025-11-25 12:21:33 -0600
committerAdam <[email protected]>2025-11-25 12:21:39 -0600
commitd74663bf532c90eba7a00dd4540e29e70179f69f (patch)
tree77020c7e513be20e2b4cd9df4c4f482bd0f6b607 /packages/ui/src/components/diff.tsx
parent020ee56f25b58103a787d1c96b326e31b495ad06 (diff)
downloadopencode-d74663bf532c90eba7a00dd4540e29e70179f69f.tar.gz
opencode-d74663bf532c90eba7a00dd4540e29e70179f69f.zip
fix(share): don't highlight words unless split
Diffstat (limited to 'packages/ui/src/components/diff.tsx')
-rw-r--r--packages/ui/src/components/diff.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/ui/src/components/diff.tsx b/packages/ui/src/components/diff.tsx
index e9747f25d..344ce3c8e 100644
--- a/packages/ui/src/components/diff.tsx
+++ b/packages/ui/src/components/diff.tsx
@@ -33,7 +33,7 @@ export function Diff<T>(props: DiffProps<T>) {
diffIndicators: "bars",
disableBackground: false,
expansionLineCount: 20,
- lineDiffType: "word-alt",
+ lineDiffType: props.diffStyle === "split" ? "word-alt" : "none",
maxLineDiffLength: 1000,
maxLineLengthForHighlighting: 1000,
disableFileHeader: true,