about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--lr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lr.c b/lr.c
index 2830aa3..19ce678 100644
--- a/lr.c
+++ b/lr.c
@@ -1164,7 +1164,7 @@ recurse(char *path, struct history *h)
 	struct history new;
 	int r, entries;
 
-	int resolve = Lflag || (Hflag && h);
+	int resolve = Lflag || (Hflag && !h);
 
 	if (resolve ? stat(path, &st) : lstat(path, &st) < 0) {
 		if (resolve && errno == ENOENT && !lstat(path, &st))