summaryrefslogtreecommitdiff
path: root/ui/ui.go
diff options
context:
space:
mode:
authordelthas <delthas@dille.cc>2022-02-13 14:21:59 +0100
committerdelthas <delthas@dille.cc>2022-02-13 14:21:59 +0100
commit31f90336bed276b0ff9e71647a030c11fa838294 (patch)
tree0495b6d6698131a078fb0aaa703e5606aae03318 /ui/ui.go
parent/query: only send MONITOR, ... if the buffer is new (diff)
Make CTRL+C alternatively clear the input and set '/quit' in it
Diffstat (limited to 'ui/ui.go')
-rw-r--r--ui/ui.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/ui.go b/ui/ui.go
index 9f0b13d..fc1a2da 100644
--- a/ui/ui.go
+++ b/ui/ui.go
@@ -318,6 +318,10 @@ func (ui *UI) InputClear() bool {
return ui.e.Clear()
}
+func (ui *UI) InputSet(text string) {
+ ui.e.Set(text)
+}
+
func (ui *UI) InputBackSearch() {
ui.e.BackSearch()
}