@@ -746,17 +746,21 @@ func (l *list[T]) GetSize() (int, int) {
747// GoToBottom implements List.
747// GoToBottom implements List.
748func (l *list[T]) GoToBottom() tea.Cmd {
748func (l *list[T]) GoToBottom() tea.Cmd {
749 l.offset = 0
752 l.offset = 0
750 l.direction = DirectionBackward
753 l.direction = DirectionBackward
752 return l.render()
754 return l.render()
755// GoToTop implements List.
757// GoToTop implements List.
756func (l *list[T]) GoToTop() tea.Cmd {
758func (l *list[T]) GoToTop() tea.Cmd {
757 l.offset = 0
762 l.offset = 0
758 l.direction = DirectionForward
763 l.direction = DirectionForward
760 return l.render()
764 return l.render()
@@ -997,6 +1001,7 @@ func (l *list[T]) UpdateItem(id string, item T) tea.Cmd {
997 if cmd != nil {
1001 if cmd != nil {
998 cmds = append(cmds, cmd)
1002 cmds = append(cmds, cmd)
1000 // if the item is at least partially below the viewport
1005 // if the item is at least partially below the viewport
1001 } else if oldPosition < oldItem.end {
1006 } else if oldPosition < oldItem.end {
1002 newItem, ok := l.renderedItems.Get(item.ID())
1007 newItem, ok := l.renderedItems.Get(item.ID())