summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgnacio Losiggio <iglosiggio@dc.uba.ar>2020-01-23 21:35:14 -0300
committerIgnacio Losiggio <iglosiggio@dc.uba.ar>2020-01-23 21:35:14 -0300
commit310d50759ca8c7c34f12c58b07f912805a064397 (patch)
treee691f5c94c5e97c0157e30b228a53a968ab1b314 /src
parent7774f62f1eb4f317d1145d7913d5f8cdf2820502 (diff)
Ignore --start-at if the parameter is an URL
Diffstat (limited to 'src')
-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) {