fix: use ! as error indicator for dircounts (#2372)

* fix: use `!` as error indicator for dircounts

* Update `CHANGELOG.md`
This commit is contained in:
Joe Lim authored and GitHub committed 2026-02-07 18:41:04 +11:00
1 parent 1ed9e96aa2
commit 78fe1bd391
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
### Fixed
- Previews are now cleaned when changing to an empty directory (#2369).
- The `dircounts` indicator for errors is changed back to `!` instead of `?` (#2372).
## [r41](https://github.com/gokcehan/lf/releases/tag/r41)
+1 -1
View File
@@ -292,7 +292,7 @@ func fileInfo(f *file, d *dir, userWidth, groupWidth, customWidth int) (string,
if f.IsDir() && getDirCounts(d.path) {
switch {
case f.dirCount == nil:
info.WriteString(" ?")
info.WriteString(" !")
case *f.dirCount < 10000:
fmt.Fprintf(&info, " %5d", *f.dirCount)
default: