From 48cf1092935c5fbe4f56377d8cf575867466bcba Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Fri, 4 Oct 2019 15:29:03 +0800 Subject: 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. --- help.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'help.c') 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; -- cgit v1.2.3