style: replaced ASCII ellipsis with Unicode character for improved typography
- Replaced ASCII ellipsis characters (three dots '...') with Unicode ellipsis character ('...') throughout the codebase for improved typography.
- Adjusted string truncation logic to account for single-character Unicode ellipsis instead of three-character ASCII ellipsis, reducing reserved space from 3 to 1 character in truncation calculations.
- Updated truncation offsets in multiple files (session-manager, agent, executor, footer) to preserve 2 additional characters before ellipsis due to more compact Unicode representation.
This commit is contained in:
@@ -434,8 +434,7 @@ function formatSequenceMatchPreview(lines: string[], startIdx: number): string {
|
||||
return previewLines
|
||||
.map((line, i) => {
|
||||
const num = start + i + 1;
|
||||
const truncated =
|
||||
line.length > MATCH_PREVIEW_MAX_LEN ? `${line.slice(0, MATCH_PREVIEW_MAX_LEN - 3)}...` : line;
|
||||
const truncated = line.length > MATCH_PREVIEW_MAX_LEN ? `${line.slice(0, MATCH_PREVIEW_MAX_LEN - 1)}…` : line;
|
||||
return ` ${num} | ${truncated}`;
|
||||
})
|
||||
.join("\n");
|
||||
@@ -1103,7 +1102,7 @@ function computeReplacements(
|
||||
return lines
|
||||
.map((line, i) => {
|
||||
const num = start + i + 1;
|
||||
const truncated = line.length > maxLineLength ? `${line.slice(0, maxLineLength - 3)}...` : line;
|
||||
const truncated = line.length > maxLineLength ? `${line.slice(0, maxLineLength - 1)}…` : line;
|
||||
return ` ${num} | ${truncated}`;
|
||||
})
|
||||
.join("\n");
|
||||
|
||||
@@ -241,7 +241,7 @@ export function findMatch(
|
||||
const preview = previewLines
|
||||
.map((line, idx) => {
|
||||
const num = start + idx + 1;
|
||||
return ` ${num} | ${line.length > OCCURRENCE_PREVIEW_MAX_LEN ? `${line.slice(0, OCCURRENCE_PREVIEW_MAX_LEN - 3)}...` : line}`;
|
||||
return ` ${num} | ${line.length > OCCURRENCE_PREVIEW_MAX_LEN ? `${line.slice(0, OCCURRENCE_PREVIEW_MAX_LEN - 1)}…` : line}`;
|
||||
})
|
||||
.join("\n");
|
||||
occurrencePreviews.push(preview);
|
||||
|
||||
Reference in New Issue
Block a user