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
|
||||
- gui.scrollbar_width;
|
||||
#endif
|
||||
if (gui.which_scrollbars[SBAR_LEFT] && gui.which_scrollbars[SBAR_RIGHT])
|
||||
xpad -= gui.scrollbar_width;
|
||||
|
||||
return (xpad < 0) ? 0 : xpad;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user