summaryrefslogtreecommitdiff
path: root/src/options.c
diff options
context:
space:
mode:
authorDaniel Friesel <ghub@derf.homelinux.org>2011-08-15 00:48:59 -0700
committerDaniel Friesel <ghub@derf.homelinux.org>2011-08-15 00:48:59 -0700
commit803a889d92cd884a074dca33fada560f8aefaf15 (patch)
tree549733793f3e8196c1170641ab60e1aad65db4a2 /src/options.c
parent083a71e948290894e70708b93c453e97619876b2 (diff)
parent3fa39154f089a6fadc1a14eb6b206e2d2875be71 (diff)
Merge pull request #56 from livibetter/reload-dir
Add reload functionality for directories
Diffstat (limited to 'src/options.c')
-rw-r--r--src/options.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/options.c b/src/options.c
index c29f057..70eb9d5 100644
--- a/src/options.c
+++ b/src/options.c
@@ -784,6 +784,8 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
/* Now the leftovers, which must be files */
if (optind < argc) {
while (optind < argc) {
+ if (opt.reload)
+ original_file_items = gib_list_add_front(original_file_items, estrdup(argv[optind]));
/* If recursive is NOT set, but the only argument is a directory
name, we grab all the files in there, but not subdirs */
add_file_to_filelist_recursively(argv[optind++], FILELIST_FIRST);