1
0
Fork 0

Fix bug with long filenames or titles.

This commit is contained in:
Solderpunk 2020-07-04 13:13:58 +02:00
parent 48aed1398d
commit b9334e07a9

View file

@ -88,7 +88,7 @@ func generatePrettyFileLabel(info os.FileInfo, path string, config Config) strin
name = readHeading(path, info)
}
if len(name) > 40 {
name = info.Name()[:36] + "..."
name = name[:36] + "..."
}
if info.IsDir() {
name += "/"