summaryrefslogtreecommitdiffstats
path: root/screen-write.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2023-09-07 22:02:11 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2023-09-07 22:02:11 +0100
commit1a1290f30b21bcc07e64eb7cb837a3c522779685 (patch)
tree5d4080ddbbedcd3887b2128495f662832df2f4a4 /screen-write.c
parent7be7ca7195dc6f4ef3000deabff0d34dfb4aa924 (diff)
Only remove images if reverse index actually scrolls.
Diffstat (limited to 'screen-write.c')
-rw-r--r--screen-write.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/screen-write.c b/screen-write.c
index 5065be54..d76d8a66 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -1370,12 +1370,12 @@ screen_write_reverseindex(struct screen_write_ctx *ctx, u_int bg)
struct screen *s = ctx->s;
struct tty_ctx ttyctx;
+ if (s->cy == s->rupper) {
#ifdef ENABLE_SIXEL
- if (image_free_all(s) && ctx->wp != NULL)
- ctx->wp->flags |= PANE_REDRAW;
+ if (image_free_all(s) && ctx->wp != NULL)
+ ctx->wp->flags |= PANE_REDRAW;
#endif
- if (s->cy == s->rupper) {
grid_view_scroll_region_down(s->grid, s->rupper, s->rlower, bg);
screen_write_collect_flush(ctx, 0, __func__);