Skip to content
Snippets Groups Projects
Commit 20c7b9d4 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Set original_file_items when using --start-at without file arguments

This makes --(auto-)reload use the directory specified at --start-at
instead of the current working directory. Closes #597
parent b2ce6d8b
No related branches found
No related tags found
No related merge requests found
......@@ -898,6 +898,7 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
*filename_start = '\0';
}
add_file_to_filelist_recursively(target_directory, FILELIST_FIRST);
original_file_items = gib_list_add_front(original_file_items, estrdup(target_directory));
free(target_directory);
} else {
add_file_to_filelist_recursively(".", FILELIST_FIRST);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment