Skip to content

Commit

Permalink
Fix spinners not spinning in spinners examples (fixes #58)
Browse files Browse the repository at this point in the history
  • Loading branch information
meowgorithm committed Mar 3, 2021
1 parent cd676fa commit 17bfc97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/spinners/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
m.index = len(spinners) - 1
}
m.resetSpinner()
return m, nil
return m, spinner.Tick
case "l", "right":
m.index++
if m.index >= len(spinners) {
m.index = 0
}
m.resetSpinner()
return m, nil
return m, spinner.Tick
case "ctrl+c", "q":
return m, tea.Quit
default:
Expand Down

0 comments on commit 17bfc97

Please sign in to comment.