From 72367afaf75dd1b13374707408986a5d18f657f6 Mon Sep 17 00:00:00 2001 From: malc Date: Fri, 26 Aug 2016 00:59:04 +0300 Subject: [PATCH] Hide veritcal scroll bar when not needed If the document fits the window vertically. This also matches horizontal behavior. --- main.ml | 1 + 1 file changed, 1 insertion(+) diff --git a/main.ml b/main.ml index 9e91514..1be78fb 100644 --- a/main.ml +++ b/main.ml @@ -118,6 +118,7 @@ let hscrollh () = let vscrollw () = if not state.uioh#alwaysscrolly && (conf.scrollb land scrollbvv = 0) + || (state.maxy < state.winh) then 0 else conf.scrollbw ;; -- 2.11.4.GIT