summaryrefslogtreecommitdiff
path: root/src/options.c
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-03-29 07:46:52 +0200
committerDaniel Friesel <derf@finalrewind.org>2020-03-29 07:46:52 +0200
commit31a2b5709080b49941319d3613485cc465bffebe (patch)
tree78563874291f199a6865563e73382966b9aae41d /src/options.c
parentf13a473e50bf662aa5760ce37e1106b903ef13f7 (diff)
parent073e94cd65c69146c195d09bfb196142ca8ec157 (diff)
Merge branch 'start-at-supports-urls' of https://github.com/iglosiggio/feh into iglosiggio-start-at-supports-urls
Diffstat (limited to 'src/options.c')
-rw-r--r--src/options.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/options.c b/src/options.c
index d3c1d52..aae10c2 100644
--- a/src/options.c
+++ b/src/options.c
@@ -843,7 +843,9 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
}
}
else if (finalrun && !opt.filelistfile && !opt.bgmode) {
- if (opt.start_list_at && !path_is_url(opt.start_list_at) && strrchr(opt.start_list_at, '/')) {
+ if (opt.start_list_at && path_is_url(opt.start_list_at)) {
+ add_file_to_filelist_recursively(opt.start_list_at, FILELIST_FIRST);
+ } else if (opt.start_list_at && strrchr(opt.start_list_at, '/')) {
char *target_directory = estrdup(opt.start_list_at);
char *filename_start = strrchr(target_directory, '/');
if (filename_start) {