aboutsummaryrefslogtreecommitdiff
path: root/vt.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-11-17 10:20:59 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-11-17 10:20:59 +0000
commit616e506f2e12983d1d5eeb7eca66e32b5aa876d9 (patch)
treebb2ef2ece0490e9ae5350e7e2f4958a4f0504f32 /vt.c
parentcsi: implement 'HPA' - Horizontal Position Absolute (diff)
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.
Diffstat (limited to 'vt.c')
-rw-r--r--vt.c1
1 files changed, 1 insertions, 0 deletions
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;
}