csi: fix \e[B - it should move the cursor *down*, not up.

This commit is contained in:
Daniel Eklöf 2019-06-21 15:34:10 +02:00
parent a537934e4b
commit dba3bb820d
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

3
csi.c
View file

@ -225,7 +225,8 @@ csi_dispatch(struct terminal *term, uint8_t final)
case 'B': {
int count = term->vt.params.idx > 0 ? term->vt.params.v[0].value : 1;
grid_cursor_up(&term->grid, count);
grid_cursor_down(&term->grid, count);
//LOG_DBG("CSI: B: row = %d, col = %d", term->grid.cursor.row, term->grid.cursor.col);
break;
}