terminal: prepare for floating grids

This commit is contained in:
Daniel Eklöf 2019-06-29 21:23:36 +02:00
parent 8cff861f38
commit 0f48b4f8f7
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 69 additions and 63 deletions

2
vt.c
View file

@ -678,7 +678,7 @@ action(struct terminal *term, enum action action, uint8_t c)
term_cursor_to(term, term->cursor.row + 1, 0);
}
struct cell *cell = &term->grid.cells[term->cursor.linear];
struct cell *cell = &term->grid->cells[term->cursor.linear];
term_damage_update(term, term->cursor.linear, 1);
if (term->vt.utf8.idx > 0) {