diff options
author | Daniel Friesel <derf@finalrewind.org> | 2012-12-23 22:18:33 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2012-12-23 22:18:33 +0100 |
commit | 88979e43155a838b4298bfaa4b6e43813a75a54b (patch) | |
tree | d651817873d22198f1ae7cda4450fce31f5eb083 | |
parent | da09e217570b4c1634a04d73f9d2f871afa2004a (diff) | |
download | feh-88979e43155a838b4298bfaa4b6e43813a75a54b.zip |
respect --start-at in thumbnail mode (closes #116)
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | src/thumbnail.c | 10 |
2 files changed, 12 insertions, 0 deletions
@@ -13,6 +13,8 @@ git HEAD * Treat quick, low-offset drags (1px or 2px move in <1 second) as clicks to improve graphics tablet support <https://github.com/derf/feh/issues/113> + * Respect --start-at in thumbnail mode + <https://github.com/derf/feh/issues/116> Tue, 16 Oct 2012 06:29:58 +0200 Daniel Friesel <derf+feh@finalrewind.org> diff --git a/src/thumbnail.c b/src/thumbnail.c index fbe2ce0..da14760 100644 --- a/src/thumbnail.c +++ b/src/thumbnail.c @@ -400,6 +400,16 @@ void init_thumbnail_mode(void) if (!opt.display) gib_imlib_free_image_and_decache(td.im_main); + else if (opt.start_list_at) { + for (l = thumbnails; l; l = l->next) { + if (!strcmp(opt.start_list_at, FEH_THUMB(l->data)->file->filename)) { + opt.start_list_at = NULL; + feh_thumbnail_select(winwid, FEH_THUMB(l->data)); + break; + } + } + } + free(s); return; |