From 9929a5ce0a38b6d0291f45e8b14e822ca5b84534 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Mon, 7 Jun 2021 21:18:15 +0200 Subject: [PATCH] =?UTF-8?q?csi:=20CHT:=20don=E2=80=99t=20alter=20the=20LCF?= =?UTF-8?q?=20flag?= 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; }