summaryrefslogtreecommitdiff
path: root/cmd-line-utils/libedit/refresh.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-line-utils/libedit/refresh.c')
-rw-r--r--cmd-line-utils/libedit/refresh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd-line-utils/libedit/refresh.c b/cmd-line-utils/libedit/refresh.c
index fdb8c13138d..534e7e12304 100644
--- a/cmd-line-utils/libedit/refresh.c
+++ b/cmd-line-utils/libedit/refresh.c
@@ -93,7 +93,7 @@ private void
re_addc(EditLine *el, int c)
{
- if (isprint(c) || ((unsigned char)c)>127) {
+ if (isprint(c)) {
re_putc(el, c, 1);
return;
}
@@ -954,7 +954,7 @@ re_refresh_cursor(EditLine *el)
h = 1;
v++;
}
- } else if (!isprint((unsigned char) c) || ((unsigned char)c)>127) {
+ } else if (!isprint((unsigned char) c)) {
h += 3;
if (h > th) { /* if overflow, compensate */
h = h - th;
@@ -1047,7 +1047,7 @@ re_fastaddc(EditLine *el)
char mc = (c == '\177') ? '?' : (c | 0100);
re_fastputc(el, '^');
re_fastputc(el, mc);
- } else if (isprint((unsigned char) c) || ((unsigned char)c)>127) { /* normal char */
+ } else if (isprint((unsigned char) c)) { /* normal char */
re_fastputc(el, c);
} else {
re_fastputc(el, '\\');