aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-05-04 10:40:11 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-05-04 10:40:11 +0300
commit80eeaa4a1254c05ab1d5514f6a77c937b4ccd299 (patch)
treefa6a7bc1266bf8fa44807a5ac14afd013860111f
parent9cbd28d0cb5ed59fe34d8a8e1a03fd8debdefd4c (diff)
downloadvideoteco-fork-80eeaa4a1254c05ab1d5514f6a77c937b4ccd299.tar.gz
fixed echoing of control characters at the end of the line
This had been broken even before my mungings.
-rw-r--r--tecdisp.c4
1 files 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':