Nicer ctrl-1
authormalc <av1474@comtv.ru>
Fri, 22 Feb 2013 15:24:59 +0000 (22 19:24 +0400)
committermalc <av1474@comtv.ru>
Fri, 22 Feb 2013 15:24:59 +0000 (22 19:24 +0400)
main.ml

diff --git a/main.ml b/main.ml
index 727447c..a14616a 100644 (file)
--- a/main.ml
+++ b/main.ml
@@ -5019,7 +5019,10 @@ let viewkeyboard key mask =
         | Csingle _ | Cmulti _ -> 1
         | Csplit (n, _) -> n
       in
-      let zoom = zoomforh state.winw state.winh state.scrollw cols in
+      let h = state.winh -
+        conf.interpagespace lsl (if conf.presentation then 1 else 0)
+      in
+      let zoom = zoomforh state.winw h state.scrollw cols in
       if zoom < 1.0
       then setzoom zoom