diff --git a/examples/spinners/main.go b/examples/spinners/main.go index d84e06b..53e5853 100644 --- a/examples/spinners/main.go +++ b/examples/spinners/main.go @@ -55,7 +55,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { return m, tea.Quit case "h", "left": m.index-- - if m.index <= 0 { + if m.index < 0 { m.index = len(spinners) - 1 } m.resetSpinner()