summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Teich <markus.teich@stusta.mhn.de>2016-06-30 16:57:31 +0200
committerMarkus Teich <markus.teich@stusta.mhn.de>2016-06-30 16:57:31 +0200
commite1a0b51d843d8e0f148e8bac6b5a134fbb5c443c (patch)
tree063854e32f5b2407e37f5c236835fa99d3ed38cf
parent827f3de2e780b7eda5890e9ede7653f39a286d93 (diff)
Also call ffload on the current slide in advance()
This fixes a bug where the image would not be loaded if the user setup a keybinding which advances multiple slides at once. Then the preloading for the previous/next slide in advance() would not catch that case and instead of an image the text version (`@filename`) would be rendered on the slide.
-rw-r--r--sent.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sent.c b/sent.c
index e4bea31..a9ca274 100644
--- a/sent.c
+++ b/sent.c
@@ -436,6 +436,7 @@ advance(const Arg *arg)
if (slides[idx].img)
slides[idx].img->state &= ~(DRAWN | SCALED);
idx = new_idx;
+ ffload(&slides[idx]);
xdraw();
if (slidecount > idx + 1)
ffload(&slides[idx + 1]);