From 2fdb219a541e1df448c12fff185012e09c562128 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Tue, 12 Jan 2016 20:45:12 -0800 Subject: Fix broken print of semicolon after ctrl char. * lib.c (out_str_char): If semi-flag is true, we must issue a semicolon not only when the next character is a hex digit, but also when it is a semicolon, so that "\x1F;;" isn't rendered as "\x1F;" where the semicolon character has disappeared. --- lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.c b/lib.c index 9fb50a10..c0c8b5de 100644 --- a/lib.c +++ b/lib.c @@ -8266,7 +8266,7 @@ static val simple_qref_args_p(val args, val pos) void out_str_char(wchar_t ch, val out, int *semi_flag) { - if (*semi_flag && iswxdigit(ch)) + if (*semi_flag && (iswxdigit(ch) || ch == ';')) put_char(chr(';'), out); *semi_flag = 0; -- cgit v1.2.3