Fix ^E binding

This commit is contained in:
Christian Rocha 2020-02-01 22:30:08 -05:00
parent ca91eb2e79
commit 7b06eb538b
No known key found for this signature in database
GPG Key ID: D6CC7A16E5878018

View File

@ -73,7 +73,7 @@ func Update(msg tea.Msg, m Model) (Model, tea.Cmd) {
}
return m, nil
case tea.KeyCtrlE: // ^E, end
m.pos = len(m.Value) - 1
m.pos = len(m.Value)
return m, nil
case tea.KeyCtrlK: // ^K, kill text after cursor
m.Value = m.Value[:m.pos]