diff --git a/screen-redraw.c b/screen-redraw.c index 82dcb4c9..9244348f 100644 --- a/screen-redraw.c +++ b/screen-redraw.c @@ -1313,10 +1313,8 @@ screen_redraw_draw_scrollbar(struct screen_redraw_ctx *ctx, int yoff = wp->yoff; struct visible_ranges *vr; - if (ctx->statustop) { - sb_y += ctx->statuslines; + if (ctx->statustop) sy += ctx->statuslines; - } /* Set up style for slider. */ gc = sb_style->gc;