summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2014-04-13 19:50:21 +0200
committerDaniel Friesel <derf@finalrewind.org>2014-04-13 19:50:21 +0200
commitef69e427c1ee092c91440ee51e593c9d6e8d0e64 (patch)
tree7b672a7722ed45441f94a4b16e0cd0b2dc71ec0e
parentc28cc2cd975bd7e6640c040b98600e201dc07ffd (diff)
parenta0ddc0dcff5d43871f8c0e87dfb5d2c49671ac30 (diff)
Merge branch 'random' of https://github.com/rangerer/feh into rangerer-random
-rw-r--r--src/slideshow.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/slideshow.c b/src/slideshow.c
index 69d8db2..06c73ec 100644
--- a/src/slideshow.c
+++ b/src/slideshow.c
@@ -692,7 +692,13 @@ gib_list *feh_list_jump(gib_list * root, gib_list * l, int direction, int num)
if (opt.cycle_once) {
exit(0);
}
- ret = root;
+ if (opt.randomize) {
+ /* Randomize the filename order */
+ filelist = gib_list_randomize(filelist);
+ ret = filelist;
+ } else {
+ ret = root;
+ }
}
} else {
if (ret->prev)