Fix scrollbar pad to work even if not set in style.

This commit is contained in:
nicm
2026-06-22 13:57:33 +00:00
parent d8370864f3
commit 02b37b3c69
2 changed files with 18 additions and 14 deletions

View File

@@ -441,7 +441,7 @@ layout_fix_panes(struct window *w, struct window_pane *skip)
if (sb_pad < 0)
sb_pad = 0;
if (sb_pos == PANE_SCROLLBARS_LEFT) {
if ((int)sx - sb_w < PANE_MINIMUM) {
if ((int)sx - sb_w - sb_pad < PANE_MINIMUM) {
wp->xoff = wp->xoff +
(int)sx - PANE_MINIMUM;
sx = PANE_MINIMUM;