diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-06-05 16:07:37 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-06-05 16:07:37 +0200 |
commit | 84e9ade826e7a6a03e0ff5cd9a35b48c4d88367e (patch) | |
tree | 7394f7d11dc3810a534fd5dc8f49cb1676eb566f /src/gui_gtk.c | |
parent | 21492743e80c6740bac65a91311c28bede8ef2f8 (diff) | |
download | vim-git-84e9ade826e7a6a03e0ff5cd9a35b48c4d88367e.tar.gz |
patch 8.2.2939: GTK: righthand scrollbar does not show with split windowv8.2.2939
Problem: GTK: righthand scrollbar does not show with split window.
Solution: Adjust padding when two scrollbars are used. (Matt Wozniski,
closes #8324)
Diffstat (limited to 'src/gui_gtk.c')
-rw-r--r-- | src/gui_gtk.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui_gtk.c b/src/gui_gtk.c index 77076fcbe..79a1ac3d8 100644 --- a/src/gui_gtk.c +++ b/src/gui_gtk.c @@ -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; } |