From 66a64cfe0674a83a6d4d3ffbd41dc6e35dd86a84 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Wed, 2 Mar 2022 14:58:02 -0500 Subject: [PATCH] fix: update bubbles window size on change --- internal/tui/bubbles/git/bubble.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/internal/tui/bubbles/git/bubble.go b/internal/tui/bubbles/git/bubble.go index d2c6bb002..6b5ea700c 100644 --- a/internal/tui/bubbles/git/bubble.go +++ b/internal/tui/bubbles/git/bubble.go @@ -80,6 +80,13 @@ func (b *Bubble) Update(msg tea.Msg) (tea.Model, tea.Cmd) { case tea.WindowSizeMsg: b.width = msg.Width b.height = msg.Height + for i, bx := range b.boxes { + m, cmd := bx.Update(msg) + b.boxes[i] = m + if cmd != nil { + cmds = append(cmds, cmd) + } + } case refs.RefMsg: b.state = treeState b.ref = msg