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
1 changed files with 1 additions and 1 deletions

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 += "/"