summaryrefslogtreecommitdiffstats
path: root/flags.c
diff options
context:
space:
mode:
authorRichard Russon <rich@flatcap.org>2016-06-04 11:31:56 -0700
committerRichard Russon <rich@flatcap.org>2016-06-04 11:31:56 -0700
commit389c74bb20b20ab31c14460962fbbb6bba82127d (patch)
tree517d42df0dc96b1379888a007bdeaee45c2d2bd6 /flags.c
parentc64cf70d1befaa9e9a5396dafc1b1ae3b0a63cf9 (diff)
Add neomutt version of sidebar patch. (closes #3829)
This is the patch from neomutt; branch 'devel/win-sidebar'; commit c796fa85f9cacefb69b8f7d8545fc9ba71674180 with the following changes: - move the sample muttrc and vimrc to contrib. - remove the README.sidebar. - empty out the PATCHES file.
Diffstat (limited to 'flags.c')
-rw-r--r--flags.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/flags.c b/flags.c
index 26802651..2d404f60 100644
--- a/flags.c
+++ b/flags.c
@@ -25,6 +25,10 @@
#include "sort.h"
#include "mx.h"
+#ifdef USE_SIDEBAR
+#include "sidebar.h"
+#endif
+
void _mutt_set_flag (CONTEXT *ctx, HEADER *h, int flag, int bf, int upd_ctx)
{
int changed = h->changed;
@@ -263,6 +267,9 @@ 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 || flagged != ctx->flagged))
h->searched = 0;
+#ifdef USE_SIDEBAR
+ sb_draw();
+#endif
}
void mutt_tag_set_flag (int flag, int bf)