summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--up.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/up.go b/up.go
index 89e7fb5..c9affa0 100644
--- a/up.go
+++ b/up.go
@@ -340,7 +340,7 @@ func (e *Editor) HandleKey(ev *tcell.EventKey) bool {
case ctrlKey(tcell.KeyCtrlA):
e.cursor = 0
case ctrlKey(tcell.KeyCtrlE):
- e.cursor = e.lastw
+ e.cursor = len(e.value)
case ctrlKey(tcell.KeyCtrlK):
e.kill()
case ctrlKey(tcell.KeyCtrlY):