From 7b06eb538baa935bd60f4e436084e8fbf04727b7 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Sat, 1 Feb 2020 22:30:08 -0500 Subject: [PATCH] Fix ^E binding --- input/input.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input/input.go b/input/input.go index daa6cab..535831f 100644 --- a/input/input.go +++ b/input/input.go @@ -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]