diff options
author | Kevin McCarthy <kevin@8t8.us> | 2019-10-04 15:29:03 +0800 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2019-10-04 15:30:08 +0800 |
commit | 48cf1092935c5fbe4f56377d8cf575867466bcba (patch) | |
tree | 3895bf05d930daf314a56c9ab24d2de378f02f54 /help.c | |
parent | a6bccbe1d1b731e69b2b609278ef0811d547a6e7 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |