Change summary
pkg/tui/log/bubble.go | 2 +-
pkg/tui/tree/bubble.go | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Detailed changes
@@ -148,7 +148,6 @@ func (b *Bubble) reset() tea.Cmd {
b.count = count
b.state = logState
b.list.Select(0)
- b.SetSize(b.width, b.height)
cmd := b.updateItems()
return cmd
}
@@ -172,6 +171,7 @@ func (b *Bubble) updateItems() tea.Cmd {
items[idx] = item{c}
}
cmd := b.list.SetItems(items)
+ b.SetSize(b.width, b.height)
return cmd
}
@@ -158,7 +158,6 @@ func (b *Bubble) reset() tea.Cmd {
b.state = treeState
b.lastSelected = make([]int, 0)
cmd := b.updateItems()
- b.SetSize(b.width, b.height)
return cmd
}
@@ -207,6 +206,7 @@ func (b *Bubble) updateItems() tea.Cmd {
}
cmd := b.list.SetItems(append(dirs, files...))
b.list.Select(0)
+ b.SetSize(b.width, b.height)
return cmd
}