From 80eeaa4a1254c05ab1d5514f6a77c937b4ccd299 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 4 May 2025 10:40:11 +0300 Subject: fixed echoing of control characters at the end of the line This had been broken even before my mungings. --- tecdisp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tecdisp.c b/tecdisp.c index f235d15..851ebc3 100644 --- a/tecdisp.c +++ b/tecdisp.c @@ -2205,7 +2205,7 @@ char expand_buffer[MAXOF(32,MAX_TAB_WIDTH+1)]; multi_byte_echo = NULL; multi_byte_echo_reverse = 0; - while(byte_count > 0){ + while(byte_count > 0 || multi_byte_echo){ if(current_column >= term_columns){ sbp->fmt_next_line = allocate_format_buffer(wptr,lbp); @@ -2235,7 +2235,7 @@ char expand_buffer[MAXOF(32,MAX_TAB_WIDTH+1)]; }/* End Else */ /* without possible SCREEN_M_REVERSE flags */ - c_data = c & 0xFF; + c_data = c & SCREEN_M_DATA; switch(c_data){ case '\t': -- cgit v1.2.3