summaryrefslogtreecommitdiff
path: root/src/fe-text/statusbar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fe-text/statusbar.c')
-rw-r--r--src/fe-text/statusbar.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/fe-text/statusbar.c b/src/fe-text/statusbar.c
index 9f1b09b0..2e54f067 100644
--- a/src/fe-text/statusbar.c
+++ b/src/fe-text/statusbar.c
@@ -661,9 +661,7 @@ static char *reverse_controls(const char *str)
out = g_string_new(NULL);
while (*str != '\0') {
- if ((unsigned char) *str < 32 ||
- (term_type == TERM_TYPE_8BIT &&
- (unsigned char) (*str & 0x7f) < 32)) {
+ if (!IS_PRINTABLE((unsigned char) *str)) {
/* control char */
g_string_sprintfa(out, "%%8%c%%8",
'A'-1 + (*str & 0x7f));