From 6326145735385616f19772e2ca7b25e68e9a7f7b Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Sat, 11 Feb 2017 23:42:07 +0100 Subject: [PATCH] [enh] use PreserveScrollPosition config value --- wuzz.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wuzz.go b/wuzz.go index 47204ff..ce1ae6e 100644 --- a/wuzz.go +++ b/wuzz.go @@ -500,7 +500,7 @@ func (a *App) PrintBody(g *gocui.Gui) { } else { vrb.Write(req.RawResponseBody) } - if _, err := vrb.Line(0); err != nil { + if _, err := vrb.Line(0); !a.config.General.PreserveScrollPosition || err != nil { vrb.SetOrigin(0, 0) } return nil