summaryrefslogtreecommitdiffstats
path: root/pager.c
diff options
context:
space:
mode:
Diffstat (limited to 'pager.c')
-rw-r--r--pager.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pager.c b/pager.c
index 7fa71301..3be2ca55 100644
--- a/pager.c
+++ b/pager.c
@@ -1284,7 +1284,7 @@ display_line (FILE *f, long *last_pos, struct line_t **lineInfo, int n,
addch (c);
col++;
}
- else if (iscntrl (c) && c < '@')
+ else if (iscntrl (c) && (c < '@' || c == 127))
{
if ((c != '\r' && c !='\n') || (buf[ch+1] != '\n' && buf[ch+1] != '\0'))
{
@@ -1297,7 +1297,7 @@ display_line (FILE *f, long *last_pos, struct line_t **lineInfo, int n,
}
addch ('^');
- addch (c + '@');
+ addch ((c + '@') & 127);
col += 2;
}
}
@@ -1314,7 +1314,7 @@ display_line (FILE *f, long *last_pos, struct line_t **lineInfo, int n,
if (ISSPACE (c))
addch (c); /* unbreakable space */
else
- addch ('.');
+ addch ('?');
col++;
}
}