From 9929a5ce0a38b6d0291f45e8b14e822ca5b84534 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 7 Jun 2021 21:18:15 +0200 Subject: csi: CHT: don’t alter the LCF flag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This makes us pass the vttest 11.5.4 (Test non-VT100 -> Test ISO-6429 cursor-movement -> CHT) test. --- csi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/csi.c b/csi.c index 045a5b6c..2d497636 100644 --- a/csi.c +++ b/csi.c @@ -1120,7 +1120,10 @@ csi_dispatch(struct terminal *term, uint8_t final) } } xassert(new_col >= term->grid->cursor.point.col); + + bool lcf = term->grid->cursor.lcf; term_cursor_right(term, new_col - term->grid->cursor.point.col); + term->grid->cursor.lcf = lcf; } break; } -- cgit v1.3