Merge pull request #5758 from vvoland/images-tree-elips-dot
cli/tree: Use single character triple dot
This commit is contained in:
commit
f97ec69122
@ -309,7 +309,7 @@ type imgColumn struct {
|
|||||||
func truncateRunes(s string, length int) string {
|
func truncateRunes(s string, length int) string {
|
||||||
runes := []rune(s)
|
runes := []rune(s)
|
||||||
if len(runes) > length {
|
if len(runes) > length {
|
||||||
return string(runes[:length-3]) + "..."
|
return string(runes[:length-1]) + "…"
|
||||||
}
|
}
|
||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user