From 8da726ac83e5b12a3d5e346fd0259eabdffdbf2b Mon Sep 17 00:00:00 2001
From: Daniel Friesel <derf@finalrewind.org>
Date: Sat, 16 Apr 2011 21:45:55 +0200
Subject: [PATCH] options.c: Do not read current directory when setting a
 background (closes #40)

---
 src/options.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/options.c b/src/options.c
index 18a424b..58af491 100644
--- a/src/options.c
+++ b/src/options.c
@@ -787,7 +787,7 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
 			add_file_to_filelist_recursively(argv[optind++], FILELIST_FIRST);
 		}
 	}
-	else if (finalrun && !opt.filelistfile)
+	else if (finalrun && !opt.filelistfile && !opt.bgmode)
 		add_file_to_filelist_recursively(".", FILELIST_FIRST);
 
 	/* So that we can safely be called again */
-- 
GitLab