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:
Daniel Eklöf 2019-11-17 11:20:59 +01:00
parent ca58c4c621
commit 616e506f2e
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 14 additions and 6 deletions

1
vt.c
View file

@ -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;
}