1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-04 03:48:07 +02:00

Made not enough space pannel looks better on 1 height

This commit is contained in:
mjarkk 2019-05-07 08:47:41 +02:00
parent 2388c3ee9a
commit 8754d766e2

View File

@ -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