Fix bug with long filenames or titles.
This commit is contained in:
parent
48aed1398d
commit
b9334e07a9
1 changed files with 1 additions and 1 deletions
|
@ -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 += "/"
|
||||
|
|
Loading…
Reference in a new issue