diff options
author | Daniel Friesel <derf@finalrewind.org> | 2013-02-01 17:46:50 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2013-02-01 17:46:50 +0100 |
commit | 6ea43a3213bb264525e04c729c67204f82c7a2c8 (patch) | |
tree | f9f3479f79227db1b5f0630345c2c0141c658065 /src/filelist.c | |
parent | 759e14c67ef0637ee82ae5167c203efcd9f3227e (diff) |
support "feh -" to read from stdin. closes #118
Diffstat (limited to 'src/filelist.c')
-rw-r--r-- | src/filelist.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/filelist.c b/src/filelist.c index 8f3bfe9..3ea0928 100644 --- a/src/filelist.c +++ b/src/filelist.c @@ -185,6 +185,11 @@ void add_file_to_filelist_recursively(char *origpath, unsigned char level) /* We'll download it later... */ free(path); return; + } else if ((len == 1) && (path[0] == '-')) { + D(("Addig stdin (-) to filelist\n")); + filelist = gib_list_add_front(filelist, feh_file_new(path)); + free(path); + return; } else if (opt.filelistfile) { char *newpath = feh_absolute_path(path); |