summaryrefslogtreecommitdiffstats
path: root/muttlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'muttlib.c')
-rw-r--r--muttlib.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/muttlib.c b/muttlib.c
index 8f0b72f5..f63c2e28 100644
--- a/muttlib.c
+++ b/muttlib.c
@@ -1947,13 +1947,15 @@ int state_printf (STATE *s, const char *fmt, ...)
void state_mark_attach (STATE *s)
{
- if ((s->flags & MUTT_DISPLAY) && !mutt_strcmp (Pager, "builtin"))
+ if ((s->flags & MUTT_DISPLAY) &&
+ (!Pager || !mutt_strcmp (Pager, "builtin")))
state_puts (AttachmentMarker, s);
}
void state_mark_protected_header (STATE *s)
{
- if ((s->flags & MUTT_DISPLAY) && !mutt_strcmp (Pager, "builtin"))
+ if ((s->flags & MUTT_DISPLAY) &&
+ (!Pager || !mutt_strcmp (Pager, "builtin")))
state_puts (ProtectedHeaderMarker, s);
}