about summary refs log tree commit diff
path: root/lr.c
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2015-10-26 15:32:01 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2015-10-26 15:32:01 +0100
commit2033efcc95c9bdb73a7db1fb6932f691bf6098ed (patch)
tree3052ae0166291258e95c73f42e790587f446292b /lr.c
parent9173677e873bfea5db87d362ea163db0497f6453 (diff)
downloadlr-2033efcc95c9bdb73a7db1fb6932f691bf6098ed.tar.gz
lr-2033efcc95c9bdb73a7db1fb6932f691bf6098ed.tar.xz
lr-2033efcc95c9bdb73a7db1fb6932f691bf6098ed.zip
tweak -A filter to prune dot dirs
Diffstat (limited to 'lr.c')
-rw-r--r--lr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lr.c b/lr.c
index 646a88d..82832de 100644
--- a/lr.c
+++ b/lr.c
@@ -1092,7 +1092,7 @@ main(int argc, char *argv[])
 		switch(c) {
 		case '0': format = zero_format; Qflag++; break;
 		case '1': expr = chain(expr, EXPR_AND, parse_expr("depth == 0 || prune")); break;
-		case 'A': expr = chain(expr, EXPR_AND, parse_expr("!path ~~ \"*/.*\" && !path == \".\"")); break;
+		case 'A': expr = chain(expr, EXPR_AND, parse_expr("!(path ~~ \"*/.*\" && prune) && !path == \".\"")); break;
 		case 'D': Dflag++; break;
 		case 'F': format = type_format; break;
 		case 'H': Hflag++; break;