on main help sign in
fix: panic when matching titles in session dialogue
commit7ace8d58f38e755d2d844b983aab5cff1e64ae4e authorChristian Rocha <christian@rocha.is> dateThu 29 Jan 2026, 15:30 (9 months ago) parent02bb76b
1 file changed+1−1
internal/ui/dialog/sessions_item.go+1−1
internal/ui/dialog/sessions_item.go+1−1
@@ -141,7 +141,7 @@ func renderItem(t ListIemStyles, title string, info string, focused bool, width
141141 titleWidth := lipgloss.Width(title)
142142 gap := strings.Repeat(" ", max(0, lineWidth-titleWidth-infoWidth))
143143 content := title
144− if matches := len(m.MatchedIndexes); matches > 0 {
144+ if m != nil && len(m.MatchedIndexes) > 0 {
145145 var lastPos int
146146 parts := make([]string, 0)
147147 ranges := matchedRanges(m.MatchedIndexes)