diff --git a/ui/ui.go b/ui/ui.go index 0f290ff0745c9a4b101d9799114199a6cf252d96..bf2219a3987bbe2ef946dd5032e92b2c1da20e1d 100644 --- a/ui/ui.go +++ b/ui/ui.go @@ -57,7 +57,6 @@ func New(s session.Session, c common.Common, initialRepo string) *UI { initialRepo: initialRepo, } ui.footer = footer.New(c, ui) - ui.SetSize(c.Width, c.Height) return ui } @@ -134,6 +133,7 @@ func (ui *UI) Init() tea.Cmd { cmds = append(cmds, ui.initialRepoCmd(ui.initialRepo)) } ui.state = loadedState + ui.SetSize(ui.common.Width, ui.common.Height) return tea.Batch(cmds...) }