From 78fe1bd3917507614ecbc2768dfc5e2528769ca3 Mon Sep 17 00:00:00 2001 From: Joe Lim <50560759+joelim-work@users.noreply.github.com> Date: Sat, 7 Feb 2026 18:41:04 +1100 Subject: [PATCH] fix: use `!` as error indicator for dircounts (#2372) * fix: use `!` as error indicator for dircounts * Update `CHANGELOG.md` --- CHANGELOG.md | 1 + ui.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index de264706..2ba1a2bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/ui.go b/ui.go index 67283900..ef087bbd 100644 --- a/ui.go +++ b/ui.go @@ -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: