diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1998-11-09 10:47:17 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1998-11-09 10:47:17 +0000 |
commit | bfadc435c7a6a36a3d7cb6c942b065c974f76b6c (patch) | |
tree | e6421daa7a8782cc60409f1213dd623aa5f2995b /help.c | |
parent | 55043d862ba2be15fee1979bf8cbb88627c83384 (diff) |
Fix the display of DEL in the pager.
Diffstat (limited to 'help.c')
-rw-r--r-- | help.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } } |