summaryrefslogtreecommitdiff
path: root/src/slideshow.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/slideshow.c')
-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)