summaryrefslogtreecommitdiffstats
path: root/color.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2017-03-31 18:15:12 -0700
committerKevin McCarthy <kevin@8t8.us>2017-03-31 18:15:12 -0700
commit107e64ca10e09a097bd528bb4dd0842dfc99c051 (patch)
tree9824606a7c7e2dcef7f5da4a8573d24c138a92f0 /color.c
parenta6d0c40161fb52b3d8415cb838f8bd768be97481 (diff)
Remove the OPTFORCEREDRAW options.
Use the menu stack to flag redraws for the index and pager.
Diffstat (limited to 'color.c')
-rw-r--r--color.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/color.c b/color.c
index c33d41eb..073b6166 100644
--- a/color.c
+++ b/color.c
@@ -22,6 +22,7 @@
#include "mutt.h"
#include "mutt_curses.h"
+#include "mutt_menu.h"
#include "mapping.h"
#include <string.h>
@@ -494,7 +495,7 @@ static int _mutt_parse_uncolor (BUFFER *buf, BUFFER *s, unsigned long data,
if (do_cache && !option (OPTNOCURSES))
{
int i;
- set_option (OPTFORCEREDRAWINDEX);
+ mutt_set_menu_redraw_full (MENU_MAIN);
/* force re-caching of index colors */
for (i = 0; Context && i < Context->msgcount; i++)
Context->hdrs[i]->pair = 0;
@@ -771,7 +772,7 @@ _mutt_parse_color (BUFFER *buf, BUFFER *s, BUFFER *err,
else if (object == MT_COLOR_INDEX)
{
r = add_pattern (&ColorIndexList, buf->data, 1, fg, bg, attr, err, 1);
- set_option (OPTFORCEREDRAWINDEX);
+ mutt_set_menu_redraw_full (MENU_MAIN);
}
else if (object == MT_COLOR_QUOTED)
{