From 97a64bccd893a9dd7ccd568d600cbb244bbabca7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Wed, 23 Apr 2025 16:51:41 -0400 Subject: [PATCH] Fix LCF mode When wrapping due to a character being written, be sure to move to the next line before writing the new character. LCF mode was badly broken, so I guess nobody was using it? --- src/conio/cterm.c | 2 +- src/syncterm/CHANGES | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/conio/cterm.c b/src/conio/cterm.c index a52d1f7abf..c2dc2717f0 100644 --- a/src/conio/cterm.c +++ b/src/conio/cterm.c @@ -5137,7 +5137,7 @@ ctputs(struct cterminal *cterm, char *buf) default: if ((cterm->last_column_flag & (CTERM_LCF_ENABLED | CTERM_LCF_SET)) == (CTERM_LCF_ENABLED | CTERM_LCF_SET)) { if (cx == cterm->right_margin || cx == CURR_MAXX) { - advance_char(cterm, &cx, &cy, 0); + advance_char(cterm, &cx, &cy, 1); clear_lcf(cterm); } } diff --git a/src/syncterm/CHANGES b/src/syncterm/CHANGES index 678245206b..c5d6bbd7a4 100644 --- a/src/syncterm/CHANGES +++ b/src/syncterm/CHANGES @@ -12,6 +12,7 @@ Fix crash when first ANSI music note played is in background Fix binary mode tracking, which could cause issues after transfers Fix SDL and GDI issue with textmode() when font is changed Fix manual upload screen when not in cp437+ANSI mode +Fix loss of character when performing LCF wrap Version 1.6 ------------ -- GitLab