summaryrefslogtreecommitdiffstats
path: root/mutt.h
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2021-02-04 18:02:06 -0800
committerKevin McCarthy <kevin@8t8.us>2021-02-05 13:37:58 -0800
commit18c29a84f2ae4679f8c9a7ac032c9b8b680419af (patch)
treeb05b36873c0784d35df58213bd42294141c24a57 /mutt.h
parent1a9fea6f9aa506cd2ac8222cee05889b775f8613 (diff)
Filter ANSI sequences when forwarding too.
Add a MUTT_CM_FORWARDING flag to correspond with the MUTT_CM_REPLYING flag. Check those to turn on ANSI filtering. In order to guard against other accidental prefix setting without one of those flags, also check s->prefix to enable ANSI filtering (and prefix printing) too. Add missing MUTT_CM_REPLYING flags to the recvcmd.c reply functions. While updating the recvcmd.c reply code, I noticed CH_REORDER wasn't enabled with OPTWEED, like in the send.c code (and everywhere else), so add the missing flag.
Diffstat (limited to 'mutt.h')
-rw-r--r--mutt.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/mutt.h b/mutt.h
index 3a697484..fe280298 100644
--- a/mutt.h
+++ b/mutt.h
@@ -1154,7 +1154,8 @@ typedef struct
#define MUTT_CHARCONV (1<<4) /* Do character set conversions */
#define MUTT_PRINTING (1<<5) /* are we printing? - MUTT_DISPLAY "light" */
#define MUTT_REPLYING (1<<6) /* are we replying? */
-#define MUTT_FIRSTDONE (1<<7) /* the first attachment has been done */
+#define MUTT_FORWARDING (1<<7) /* are we inline forwarding? */
+#define MUTT_FIRSTDONE (1<<8) /* the first attachment has been done */
#define state_set_prefix(s) ((s)->flags |= MUTT_PENDINGPREFIX)
#define state_reset_prefix(s) ((s)->flags &= ~MUTT_PENDINGPREFIX)