diff options
author | Daniel Friesel <derf@chaosdorf.de> | 2015-06-26 16:53:58 +0200 |
---|---|---|
committer | Daniel Friesel <derf@chaosdorf.de> | 2015-06-26 16:53:58 +0200 |
commit | 63db70279618d9437eb7f328a754affac235246e (patch) | |
tree | ac89496d303618c5b6748ed72317895a0a91c2dd /src | |
parent | 578a92d592d437c7221f849612e5ebbc172f7114 (diff) | |
parent | 17ee23949dc04aaa31a22b1e85aabd11f6a075af (diff) |
Merge pull request #185 from shiponi/master
slideshow: When removing last image, stay on the last image
Diffstat (limited to 'src')
-rw-r--r-- | src/slideshow.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/slideshow.c b/src/slideshow.c index e42bd23..7636d31 100644 --- a/src/slideshow.c +++ b/src/slideshow.c @@ -621,7 +621,12 @@ void feh_filelist_image_remove(winwidget winwid, char do_delete) feh_file_rm_and_free(filelist, doomed); exit(0); } - slideshow_change_image(winwid, SLIDE_NEXT, 0); + if (doomed->next) { + slideshow_change_image(winwid, SLIDE_NEXT, 0); + } + else { + slideshow_change_image(winwid, SLIDE_PREV, 0); + } if (do_delete) filelist = feh_file_rm_and_free(filelist, doomed); else |