0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.2939: GTK: righthand scrollbar does not show with split window

Problem:    GTK: righthand scrollbar does not show with split window.
Solution:   Adjust padding when two scrollbars are used. (Matt Wozniski,
            closes #8324)
This commit is contained in:
Bram Moolenaar
2021-06-05 16:07:37 +02:00
parent 21492743e8
commit 84e9ade826
2 changed files with 5 additions and 0 deletions

View File

@@ -1050,6 +1050,9 @@ gui_mch_get_scrollbar_xpadding(void)
xpad = gui.formwin->allocation.width - gui.drawarea->allocation.width
- gui.scrollbar_width;
#endif
if (gui.which_scrollbars[SBAR_LEFT] && gui.which_scrollbars[SBAR_RIGHT])
xpad -= gui.scrollbar_width;
return (xpad < 0) ? 0 : xpad;
}