mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
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.
This commit is contained in:
parent
ca58c4c621
commit
616e506f2e
2 changed files with 14 additions and 6 deletions
1
vt.c
1
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue