Merge branch 'obsd-master'

This commit is contained in:
Thomas Adam
2026-03-23 12:01:10 +00:00
6 changed files with 67 additions and 26 deletions

View File

@@ -1095,12 +1095,13 @@ screen_redraw_draw_scrollbar(struct screen_redraw_ctx *ctx,
sy += ctx->statuslines;
}
/* Set up style for slider. */
gc = sb_style->gc;
memcpy(&slgc, &gc, sizeof slgc);
slgc.fg = gc.bg;
slgc.bg = gc.fg;
if (sb_x >= sx || sb_y >= sy)
return;
imax = sb_w + sb_pad;
if ((int)imax + sb_x > sx)
imax = sx - sb_x;