refactor(tui): unicode symbols from a single definition

This commit is contained in:
Karol Broda
2025-12-20 19:29:16 +01:00
parent 99f1d95295
commit d7cf490ff5
3 changed files with 68 additions and 33 deletions

View File

@@ -14,7 +14,7 @@ func truncate(s string, max int) string {
if max <= 2 {
return s[:max]
}
return s[:max-1] + "…"
return s[:max-1] + SymbolEllipsis
}
var ansiRegex = regexp.MustCompile(`\x1b\[[0-9;]*m`)