Skip to content

Commit cdd20cb

Browse files
committed
123
1 parent 5c302ab commit cdd20cb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/amazonq/src/app/inline/EditRendering/svgGenerator.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ export const emptyDiffSvg = {
1818
originalCodeHighlightRange: [],
1919
}
2020

21+
const DEFAULT_LINE_HIGHLIGHT_LENGTH = 4
22+
2123
export class SvgGenerationService {
2224
/**
2325
* Generates an SVG image representing a code diff
@@ -459,7 +461,7 @@ export class SvgGenerationService {
459461
originalRanges.push({
460462
line: lineIndex,
461463
start: 0,
462-
end: line.length ?? 4,
464+
end: line.length ?? DEFAULT_LINE_HIGHLIGHT_LENGTH,
463465
})
464466
}
465467
}

0 commit comments

Comments
 (0)