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:
parent
2388c3ee9a
commit
8754d766e2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user