fix padding when non-ascii is used

This commit is contained in:
gutmet 2020-10-12 09:33:05 +02:00
parent 5c7c1c261d
commit a7f70b2cb9

View File

@ -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
}
}