From 5f71f874968e3e73d98b57801a4deb1c587da79c Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Mon, 3 Feb 2020 21:43:16 +1100 Subject: correctly compare new main height to previous --- pkg/gui/gui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg') diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index d735b8418..371dfe7dd 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -489,7 +489,7 @@ func (gui *Gui) layout(g *gocui.Gui) error { prevMainView, err := gui.g.View("main") if err == nil { _, prevMainHeight := prevMainView.Size() - heightDiff := mainPanelBottom - prevMainHeight + heightDiff := mainPanelBottom - prevMainHeight - 1 if heightDiff > 0 { if manager, ok := gui.viewBufferManagerMap["main"]; ok { manager.ReadLines(heightDiff) -- cgit v1.2.3