From 1f1a303c617057f149b4f0d748ee0a195484642c Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Mon, 14 Sep 2026 23:51:33 +0200 Subject: output: wrap by terminal columns, names cannot fake step lines, -v lists unscanned destinations --- cmd/krino/sort.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cmd/krino/sort.go') diff --git a/cmd/krino/sort.go b/cmd/krino/sort.go index 83ede11..163d388 100644 --- a/cmd/krino/sort.go +++ b/cmd/krino/sort.go @@ -14,7 +14,6 @@ import ( "sort" "strings" "syscall" - "unicode/utf8" "golang.org/x/term" @@ -582,7 +581,7 @@ func chainOutcomes(chains []plan.Chain) (excluded, allSkipped int) { func relWidth(rels []string) int { w := 0 for _, s := range rels { - if n := utf8.RuneCountInString(s); n > w { + if n := cols(s); n > w { w = n } } @@ -595,7 +594,7 @@ func relWidth(rels []string) int { // padCell pads s to width w (runes, not bytes) with trailing spaces; s // already at or beyond w is left unpadded. func padCell(s string, w int) string { - n := utf8.RuneCountInString(s) + n := cols(s) if n >= w { return s } -- cgit v1.3