fix: filter newline (#2526)

This commit is contained in:
valoq authored and GitHub committed 2026-04-28 07:40:10 +02:00
1 parent ffe1ac1cb8
commit 54bcbca6ce
4 files changed
+39 -3

No files matched your search

+3
View File
@@ -1348,6 +1348,9 @@ func listFilesInCurrDir(nav *nav) string {
b := new(strings.Builder)
for _, file := range dir.files {
if strings.ContainsAny(file.path, "\n\r") {
continue
}
fmt.Fprintln(b, file.path)
}