From fa0699638368fb67f2c8febe24f4941fb8d642fb Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Sat, 20 Jun 2020 15:21:30 -0400 Subject: [PATCH] Dispell a magic number --- ui/pager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/pager.go b/ui/pager.go index 65a08fc..5b0acbd 100644 --- a/ui/pager.go +++ b/ui/pager.go @@ -124,7 +124,7 @@ func (m *pagerModel) setSize(w, h int) { m.textInput.Width = w - len(noteHeadingText) - len(notePromptText) - 1 if m.showHelp { - m.viewport.Height -= pagerHelpHeight + 1 + m.viewport.Height -= (statusBarHeight + pagerHelpHeight) } }