summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--up.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/up.go b/up.go
index 3236ec8..3900df8 100644
--- a/up.go
+++ b/up.go
@@ -340,6 +340,8 @@ func (e *Editor) HandleKey(ev *tcell.EventKey) bool {
e.cursor = 0
case ctrlKey(tcell.KeyCtrlE):
e.cursor = e.lastw
+ case ctrlKey(tcell.KeyCtrlK):
+ e.value = e.value[:e.cursor]
default:
// Unknown key/combination, not handled
return false