diff options
author | mjarkk <mkopenga@gmail.com> | 2019-05-07 08:47:41 +0200 |
---|---|---|
committer | mjarkk <mkopenga@gmail.com> | 2019-05-07 08:47:41 +0200 |
commit | 8754d766e294a07b96d506a30088cf5cc666b611 (patch) | |
tree | a42d421885b55a919d70b8fcab9f7158c1179f98 /pkg/gui | |
parent | 2388c3ee9a5dd70cf953b4fbdd81f847c8a8d24f (diff) |
Made not enough space pannel looks better on 1 height
Diffstat (limited to 'pkg/gui')
-rw-r--r-- | pkg/gui/gui.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index 101e297e2..7ff601682 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -302,7 +302,7 @@ func (gui *Gui) layout(g *gocui.Gui) error { minimumHeight := 9 minimumWidth := 10 if height < minimumHeight || width < minimumWidth { - v, err := g.SetView("limit", 0, 0, max(width-1, 2), max(height-1, 2), 0) + v, err := g.SetView("limit", 0, 0, width-1, height-1, 0) if err != nil { if err.Error() != "unknown view" { return err |