From bfadc435c7a6a36a3d7cb6c942b065c974f76b6c Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Mon, 9 Nov 1998 10:47:17 +0000 Subject: Fix the display of DEL in the pager. --- help.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'help.c') 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; } } -- cgit v1.2.3