summaryrefslogtreecommitdiff
path: root/src/options.c
diff options
context:
space:
mode:
authorYu-Jie Lin <livibetter@gmail.com>2011-08-13 22:51:39 +0800
committerYu-Jie Lin <livibetter@gmail.com>2011-08-13 22:51:39 +0800
commit3fa39154f089a6fadc1a14eb6b206e2d2875be71 (patch)
tree549733793f3e8196c1170641ab60e1aad65db4a2 /src/options.c
parent083a71e948290894e70708b93c453e97619876b2 (diff)
Add reload functionality for directories (derf#14)
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);