summaryrefslogtreecommitdiffstats
path: root/help.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 /help.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 'help.c')
-rw-r--r--help.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/help.c b/help.c
index 735aa5d7..347da1ee 100644
--- a/help.c
+++ b/help.c
@@ -224,7 +224,7 @@ static void format_line (FILE *f, int ismacro,
if (ismacro > 0)
{
- if (!mutt_strcmp (Pager, "builtin"))
+ if (!Pager || !mutt_strcmp (Pager, "builtin"))
fputs ("_\010", f);
fputs ("M ", f);
col += 2;
@@ -264,7 +264,7 @@ static void format_line (FILE *f, int ismacro,
if (*t3)
{
- if (mutt_strcmp (Pager, "builtin"))
+ if (Pager && mutt_strcmp (Pager, "builtin"))
{
fputc ('\n', f);
n = 0;