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:
@@ -1050,6 +1050,9 @@ gui_mch_get_scrollbar_xpadding(void)
|
|||||||
xpad = gui.formwin->allocation.width - gui.drawarea->allocation.width
|
xpad = gui.formwin->allocation.width - gui.drawarea->allocation.width
|
||||||
- gui.scrollbar_width;
|
- gui.scrollbar_width;
|
||||||
#endif
|
#endif
|
||||||
|
if (gui.which_scrollbars[SBAR_LEFT] && gui.which_scrollbars[SBAR_RIGHT])
|
||||||
|
xpad -= gui.scrollbar_width;
|
||||||
|
|
||||||
return (xpad < 0) ? 0 : xpad;
|
return (xpad < 0) ? 0 : xpad;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2939,
|
||||||
/**/
|
/**/
|
||||||
2938,
|
2938,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user