From c498b67fd65eb64d1fb1ffdf45e6366d84056ff1 Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 30 Jul 2025 13:51:50 -0700 Subject: [PATCH] fix tests --- src/ui/ColoredDiff.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/ColoredDiff.tsx b/src/ui/ColoredDiff.tsx index 803225f71..dd74a4d4f 100644 --- a/src/ui/ColoredDiff.tsx +++ b/src/ui/ColoredDiff.tsx @@ -129,8 +129,8 @@ export const ColoredDiff: React.FC<{ diffContent: string }> = ({ (l) => l.type !== "hunk" && l.type !== "other" ); - const truncatedLines = displayableLines; - const isTruncated = false; + const truncatedLines = displayableLines.slice(0, 16); + const isTruncated = displayableLines.length > 16; // Group consecutive add/delete lines for word-level diffing const groupedLines: Array<{ type: "group" | "single"; lines: DiffLine[] }> =