diff --git a/laymanshex.go b/laymanshex.go index dd7b988..23b12ab 100644 --- a/laymanshex.go +++ b/laymanshex.go @@ -439,7 +439,7 @@ func fmtPadding(descr fileDescription, nopadding bool) (string, string, string) } pad := 0 for _, part := range descr.parts { - if n := len(part.name); n > pad { + if n := len([]rune(part.name)); n > pad { pad = n } }