From 46a4253496ac2cc38450d347aa6fd05d0035a5ab Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 3 Oct 2011 08:33:55 +0200 Subject: feh_display_info: Allow state to be reset for successive calls Required e.g. for feh --preload --thumbnails --- src/imlib.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/imlib.c') diff --git a/src/imlib.c b/src/imlib.c index fc7fb16..443246d 100644 --- a/src/imlib.c +++ b/src/imlib.c @@ -730,6 +730,13 @@ void feh_display_status(char stat) D(("filelist %p, filelist->next %p\n", filelist, filelist->next)); + if (!stat) { + putc('\n', stdout); + init_len = 0; + i = 0; + return; + } + if (!init_len) init_len = gib_list_length(filelist); -- cgit v1.2.3