summaryrefslogtreecommitdiff
path: root/ui/ui.go
diff options
context:
space:
mode:
authordelthas <delthas@dille.cc>2021-07-11 23:40:36 +0200
committerHubert Hirtz <hubert@hirtz.pm>2021-08-07 15:46:40 +0200
commitedb9412b834d246c8b8dbf78e52e6c0129bb66ef (patch)
treeea03897bceb7486492e87f30b5374b8c13c7721d /ui/ui.go
parentui: fix editor tests (diff)
Introduce backsearch message support with ctrl+R
Fixes: #47
Diffstat (limited to '')
-rw-r--r--ui/ui.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/ui.go b/ui/ui.go
index 8c75e97..39f936c 100644
--- a/ui/ui.go
+++ b/ui/ui.go
@@ -265,6 +265,10 @@ func (ui *UI) InputClear() bool {
return ui.e.Clear()
}
+func (ui *UI) InputBackSearch() {
+ ui.e.BackSearch()
+}
+
func (ui *UI) Resize() {
w, h := ui.screen.Size()
innerWidth := w - 9 - ui.config.ChanColWidth - ui.config.NickColWidth - ui.config.MemberColWidth