diff options
author | Daniel Friesel <derf@finalrewind.org> | 2014-04-13 19:50:21 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2014-04-13 19:50:21 +0200 |
commit | ef69e427c1ee092c91440ee51e593c9d6e8d0e64 (patch) | |
tree | 7b672a7722ed45441f94a4b16e0cd0b2dc71ec0e /src | |
parent | c28cc2cd975bd7e6640c040b98600e201dc07ffd (diff) | |
parent | a0ddc0dcff5d43871f8c0e87dfb5d2c49671ac30 (diff) |
Merge branch 'random' of https://github.com/rangerer/feh into rangerer-random
Diffstat (limited to 'src')
-rw-r--r-- | src/slideshow.c | 8 |
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) |