fix(font): validate list existance before updating

resolves #5178
This commit is contained in:
Jan De Dobbeleer 2024-06-28 07:25:32 +02:00 committed by Jan De Dobbeleer
parent ea5750f44b
commit 12a732d63a

View file

@ -231,6 +231,10 @@ func (m *main) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
return m, cmd
}
if m.list == nil {
return m, nil
}
lst, cmd := m.list.Update(msg)
m.list = &lst
return m, cmd