summaryrefslogtreecommitdiff
path: root/ui/ui.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/ui.go')
-rw-r--r--ui/ui.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/ui.go b/ui/ui.go
index 8cbfea1..9ea1381 100644
--- a/ui/ui.go
+++ b/ui/ui.go
@@ -174,6 +174,14 @@ func (ui *UI) InputBackspace() (ok bool) {
return
}
+func (ui *UI) InputDelete() (ok bool) {
+ ok = ui.e.RemRuneForward()
+ if ok {
+ ui.draw()
+ }
+ return
+}
+
func (ui *UI) InputEnter() (content string) {
content = ui.e.Flush()
ui.draw()