render: sixel: don't render sixels on the 'other' grid

This commit is contained in:
Daniel Eklöf 2020-02-23 00:41:28 +01:00
parent 6d69311630
commit 85684bc0c7
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -523,6 +523,9 @@ static void
render_sixel(struct terminal *term, pixman_image_t *pix,
const struct sixel *sixel)
{
if (sixel->grid != term->grid)
return;
int view_end = (term->grid->view + term->rows - 1) & (term->grid->num_rows - 1);
int first_visible_row = -1;