summaryrefslogtreecommitdiffstats
path: root/muttlib.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2019-10-04 15:29:03 +0800
committerKevin McCarthy <kevin@8t8.us>2019-10-04 15:30:08 +0800
commit48cf1092935c5fbe4f56377d8cf575867466bcba (patch)
tree3895bf05d930daf314a56c9ab24d2de378f02f54 /muttlib.c
parenta6bccbe1d1b731e69b2b609278ef0811d547a6e7 (diff)
Fix built-in pager checks for help and attachments.
Mutt uses the built-in pager when $pager is unset too. Fix a few checks to also handle that case.
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);
}