summaryrefslogtreecommitdiff
path: root/src/keyevents.c
diff options
context:
space:
mode:
authorLevi Smith <lsmith3@unbc.ca>2010-09-04 04:13:16 -0700
committerDaniel Friesel <derf@finalrewind.org>2010-09-05 16:25:41 +0200
commitc515ae7956ee16e7595294ed4cb7cba7f88c48ae (patch)
tree8a814d8b47dd540c74f3c2b12f6a4bdf656bb800 /src/keyevents.c
parentaa22a1466e747a67fbae482d0251545ebb73318f (diff)
Option --action-hold-slide. If specified, when in slideshow mode images will not automatically change after running user action. Otherwise, slideshow images will cycle after action as usual.
Diffstat (limited to 'src/keyevents.c')
-rw-r--r--src/keyevents.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/keyevents.c b/src/keyevents.c
index 8bb85f5..893d543 100644
--- a/src/keyevents.c
+++ b/src/keyevents.c
@@ -35,9 +35,11 @@ void feh_event_invoke_action(winwidget winwid, char *action)
D(("winwid is '%p'\n", winwid));
if (action) {
if (opt.slideshow) {
- feh_action_run(FEH_FILE(winwid->file->data), action);
- winwidget_update_caption(winwid);
- /* slideshow_change_image(winwid, SLIDE_NEXT); */
+ feh_action_run(FEH_FILE(winwid->file->data), action);
+ winwidget_update_caption(winwid);
+
+ if (! opt.action_hold_slide)
+ slideshow_change_image(winwid, SLIDE_NEXT);
} else if ((winwid->type == WIN_TYPE_SINGLE)
|| (winwid->type == WIN_TYPE_THUMBNAIL_VIEWER)) {