Andreas Krennmair:
[apps/madmutt.git] / flags.c
diff --git a/flags.c b/flags.c
index e46ee8a..763b96d 100644 (file)
--- a/flags.c
+++ b/flags.c
 
 #include "mutt.h"
 #include "mutt_curses.h"
+#include "mutt_menu.h"
 #include "sort.h"
 #include "mx.h"
+#include "sidebar.h"
 
 #ifdef USE_IMAP
 #include "imap_private.h"
@@ -297,6 +299,7 @@ void _mutt_set_flag (CONTEXT *ctx, HEADER *h, int flag, int bf, int upd_ctx)
    */
   if (h->searched && (changed != h->changed || deleted != ctx->deleted || tagged != ctx->tagged))
     h->searched = 0;
+       draw_sidebar(0);
 }
 
 void mutt_tag_set_flag (int flag, int bf)