Merge pull request #5758 from vvoland/images-tree-elips-dot

cli/tree: Use single character triple dot
This commit is contained in:
Paweł Gronowski 2025-01-20 10:24:00 +01:00 committed by GitHub
commit f97ec69122
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -309,7 +309,7 @@ type imgColumn struct {
func truncateRunes(s string, length int) string {
runes := []rune(s)
if len(runes) > length {
return string(runes[:length-3]) + "..."
return string(runes[:length-1]) + "…"
}
return s
}