Skip to content

Commit

Permalink
fix(font): validate list existance before updating
Browse files Browse the repository at this point in the history
resolves #5178
  • Loading branch information
JanDeDobbeleer committed Jun 28, 2024
1 parent ea5750f commit 12a732d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/font/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit 12a732d

@SpotlightForBugs
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much!

Please sign in to comment.