]> granicus.if.org Git - neomutt/commitdiff
refresh sidebar after timeout
authorStefan Assmann <sassmann@kpanic.de>
Wed, 30 Oct 2013 18:34:57 +0000 (11:34 -0700)
committerRichard Russon <rich@flatcap.org>
Mon, 4 Apr 2016 02:37:44 +0000 (03:37 +0100)
Allow the sidebar to automatically refresh after the amount of time
specified via the "timeout" variable.

Signed-off-by: Stefan Assmann <sassmann@kpanic.de>
buffy.c
keymap.c

diff --git a/buffy.c b/buffy.c
index f9ba3d8a4c6dae9240c7af65b2ba8c0d51573640..a95d5ed2f75095642defe7564c341f9dea520ded 100644 (file)
--- a/buffy.c
+++ b/buffy.c
@@ -465,6 +465,9 @@ buffy_maildir_update (BUFFY *mailbox)
 
        mailbox->sb_last_checked = time (NULL);
        closedir (dirp);
+
+       /* make sure the updates are actually put on screen */
+       sb_draw();
 }
 #endif
 
@@ -531,6 +534,9 @@ buffy_mbox_update (BUFFY *mailbox, struct stat *sb)
                mailbox->sb_last_checked = time (NULL);
                mx_close_mailbox (ctx, 0);
        }
+
+       /* make sure the updates are actually put on screen */
+       sb_draw();
 }
 #endif
 
index 43a905044bba90492d503f9bd092facd72ec1368..6d9661e1e382e96b004f75917ff9cc942073d1f9 100644 (file)
--- a/keymap.c
+++ b/keymap.c
@@ -453,6 +453,9 @@ int km_dokey (int menu)
     }
 #endif
 
+    /* update sidebar stats */
+    mutt_buffy_check(0);
+
     timeout (i * 1000);
     tmp = mutt_getch();
     timeout (-1);