diff --git a/input/input.go b/input/input.go index 4e470ec..649d899 100644 --- a/input/input.go +++ b/input/input.go @@ -82,20 +82,20 @@ func Update(msg tea.Msg, m Model) (Model, tea.Cmd) { m.pos-- } return m, nil - case tea.KeyCtrlF: // ^F, forward one character - fallthrough case tea.KeyLeft: if m.pos > 0 { m.pos-- } return m, nil - case tea.KeyCtrlB: // ^B, back one charcter - fallthrough case tea.KeyRight: if m.pos < len(m.Value) { m.pos++ } return m, nil + case tea.KeyCtrlF: // ^F, forward one character + fallthrough + case tea.KeyCtrlB: // ^B, back one charcter + fallthrough case tea.KeyCtrlA: // ^A, beginning m.pos = 0 return m, nil