summaryrefslogtreecommitdiff
path: root/src/slideshow.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/slideshow.c')
-rw-r--r--src/slideshow.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/slideshow.c b/src/slideshow.c
index 0a70347..4835360 100644
--- a/src/slideshow.c
+++ b/src/slideshow.c
@@ -205,6 +205,9 @@ void slideshow_change_image(winwidget winwid, int change)
case SLIDE_PREV:
current_file = feh_list_jump(filelist, current_file, BACK, 1);
break;
+ case SLIDE_RAND:
+ current_file = feh_list_jump(filelist, current_file, FORWARD, rand() % filelist_len);
+ break;
case SLIDE_JUMP_FWD:
if (filelist_len < 5)
jmp = 1;