From 22f6177749051355d967b89c633843accf72e19d Mon Sep 17 00:00:00 2001 From: malc Date: Fri, 6 Mar 2015 18:17:15 +0300 Subject: [PATCH] Restore zoom but not window dimensions on gotohist Former doesn't work all that well in fullscreen mode. --- main.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.ml b/main.ml index b554d7f..8db3697 100644 --- a/main.ml +++ b/main.ml @@ -3396,14 +3396,14 @@ let genhistoutlines = let gotohist (path, (c, bookmarks, x, anchor)) = Config.save leavebirdseye; state.anchor <- anchor; - state.x <- x; state.bookmarks <- bookmarks; state.origin <- E.s; + setzoom c.zoom; + state.x <- x; setconf conf c; let x0, y0, x1, y1 = conf.trimfuzz in wcmd "trimset %d %d %d %d %d" (btod conf.trimmargins) x0 y0 x1 y1; opendoc path E.s; - reshape ~firsttime:true conf.cwinw conf.cwinh; ;; let makecheckers () = -- 2.11.4.GIT