diff options
author | delthas <delthas@dille.cc> | 2022-02-13 14:21:59 +0100 |
---|---|---|
committer | delthas <delthas@dille.cc> | 2022-02-13 14:21:59 +0100 |
commit | 31f90336bed276b0ff9e71647a030c11fa838294 (patch) | |
tree | 0495b6d6698131a078fb0aaa703e5606aae03318 /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.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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() } |