diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-02-22 23:40:53 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-02-22 23:40:53 +0000 |
| commit | 2c7d98f2ee9cd0aece4627e8f638ff221b3be755 (patch) | |
| tree | 187b2f351b1bf797c6f20b2ea04887dba0843367 /sixel.c | |
| parent | sixel: track which grid image was created on (diff) | |
sixel: destroy_at_cursor(): skip images on 'other' grid
Diffstat (limited to 'sixel.c')
| -rw-r--r-- | sixel.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -58,6 +58,9 @@ sixel_delete_at_cursor(struct terminal *term) const int row = term->grid->offset + term->cursor.point.row; tll_foreach(term->sixel_images, it) { + if (it->item.grid != term->grid) + continue; + const int start = it->item.pos.row; const int end = start + it->item.rows; |
