about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2019-03-15 15:20:05 +0100
committerLeah Neukirchen <leah@vuxu.org>2019-03-15 15:20:05 +0100
commitf945eb17b99ba1ba34eb8b44eb1078f4303c9044 (patch)
treed27b442eb4da907bd0b5b66e49b10a1de55c8370
parent7ff5e319a9f022445944bdb17ebc7941412ca3f9 (diff)
downloadlr-f945eb17b99ba1ba34eb8b44eb1078f4303c9044.tar.gz
lr-f945eb17b99ba1ba34eb8b44eb1078f4303c9044.tar.xz
lr-f945eb17b99ba1ba34eb8b44eb1078f4303c9044.zip
only hide directories, other entries can just be dropped
-rw-r--r--lr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lr.c b/lr.c
index 8ecb295..4d45bea 100644
--- a/lr.c
+++ b/lr.c
@@ -2147,7 +2147,7 @@ callback(const char *fpath, const struct stat *sb, int depth, ino_t entries, off
 
 	prune = 0;
 	if (expr && !eval(expr, fi)) {
-		if (Bflag && !prune) {
+		if (Bflag && S_ISDIR(fi->sb.st_mode) && !prune) {
 			fi->color = COLOR_HIDDEN;
 		} else {
 			free_fi(fi);