summaryrefslogtreecommitdiffstats
path: root/help.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-11-09 10:47:17 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-11-09 10:47:17 +0000
commitbfadc435c7a6a36a3d7cb6c942b065c974f76b6c (patch)
treee6421daa7a8782cc60409f1213dd623aa5f2995b /help.c
parent55043d862ba2be15fee1979bf8cbb88627c83384 (diff)
Fix the display of DEL in the pager.
Diffstat (limited to 'help.c')
-rw-r--r--help.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/help.c b/help.c
index 75ecd7fb..4defe764 100644
--- a/help.c
+++ b/help.c
@@ -87,14 +87,14 @@ mutt_compile_help (char *buf, size_t buflen, int menu, struct mapping_t *items)
static int print_macro (FILE *f, int maxchar, const char **macro)
{
- int c = **macro;
+ int c = (unsigned char) **macro;
int n = maxchar;
while (c)
{
if (!IsPrint(c))
{
- if (c >= ' ')
+ if (c >= ' ' && c != 127)
c = '?';
else if (n < 2)
c = 0;
@@ -121,7 +121,7 @@ static int print_macro (FILE *f, int maxchar, const char **macro)
break;
default:
fputc ('^', f);
- c += '@';
+ c = (c + '@') & 127;
break;
}
}