diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-06-10 16:43:42 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-06-10 16:43:42 +0000 |
| commit | e0dc01f2ee7ab943599051d785ef33169c74631b (patch) | |
| tree | 49d73c429b5940a0818dd38cd54e714ee75244ea | |
| parent | sixel: do not reset palette after each image (diff) | |
sixel: don't erase if cursor is *before* the image
| -rw-r--r-- | sixel.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -93,9 +93,10 @@ sixel_delete_at_point(struct terminal *term, int _row, int col) const int six_end = six_start + six->rows - 1; if (row >= six_start && row <= six_end) { + const int col_start = six->pos.col; const int col_end = six->pos.col + six->cols; - if (col < col_end) { + if (col >= col_start && col < col_end) { sixel_erase(term, six); tll_remove(term->grid->sixel_images, it); } |
