on main help sign in
fix: fix panic: start can't be greater than end
commit1dc7f20533700ce2de87eee36ec67842a982d502 authorAndrey Nering <andreynering@users.noreply.github.com> dateFri 8 Aug 2025, 11:04 (1 year ago) parent4eec92b
1 file changed+1
internal/tui/exp/list/list.go+1
internal/tui/exp/list/list.go+1
@@ -476,6 +476,7 @@ func (l *list[T]) viewPosition() (int, int) {
476476 start = max(0, renderedLines-l.offset-l.height+1)
477477 end = max(0, renderedLines-l.offset)
478478 }
479+ start = min(start, end)
479480 return start, end
480481}
481482