Skip to content

Commit c536c94

Browse files
committed
Trim diff viewer of new lines
1 parent b98c1ca commit c536c94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/src/components/tools/diff-viewer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const lineColor = (
5050

5151
export const DiffViewer = ({ diffText }: DiffViewerProps) => {
5252
const theme = useTheme()
53-
const lines = diffText.split('\n')
53+
const lines = diffText.trim().split('\n')
5454

5555
return (
5656
<box

0 commit comments

Comments
 (0)