From 616e506f2e12983d1d5eeb7eca66e32b5aa876d9 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 17 Nov 2019 11:20:59 +0100 Subject: csi: fix bad implementation of CBT (back tab) * It takes a parameter, that indicates the number of tab stops to move through * Use the tab stops defined in the tab stops list, not hard coded mod 8 columns. --- vt.c | 1 + 1 file changed, 1 insertion(+) (limited to 'vt.c') diff --git a/vt.c b/vt.c index cad4cbcf..bcce4052 100644 --- a/vt.c +++ b/vt.c @@ -875,6 +875,7 @@ action(struct terminal *term, enum action _action, uint8_t c) break; } } + assert(new_col >= term->cursor.point.col); term_cursor_right(term, new_col - term->cursor.point.col); break; } -- cgit v1.3