diff options
author | Tulir Asokan <tulir@maunium.net> | 2018-05-22 17:23:54 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2018-05-22 17:23:54 +0300 |
commit | cce79ab7d8481a06054166049876c8a2cbb3418f (patch) | |
tree | f796cfc0d3633563d38cc9809fd0c21c524a4dec /ui/view-main.go | |
parent | 09703c6b9c343feca8ee5db263d25f174171339d (diff) |
Clean up code
Diffstat (limited to 'ui/view-main.go')
-rw-r--r-- | ui/view-main.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/view-main.go b/ui/view-main.go index e576a24..74a6ce1 100644 --- a/ui/view-main.go +++ b/ui/view-main.go @@ -202,9 +202,9 @@ func (view *MainView) KeyEventHandler(roomView *RoomView, key *tcell.EventKey) * case tcell.KeyUp: view.SwitchRoom(view.roomList.Previous()) case tcell.KeyEnter: - fuzz := NewFuzzyView(view, 42, 12) - view.parent.views.AddPage("fuzzy", fuzz, true, true) - view.parent.app.SetFocus(fuzz) + searchModal := NewFuzzySearchModal(view, 42, 12) + view.parent.views.AddPage("fuzzy-search-modal", searchModal, true, true) + view.parent.app.SetFocus(searchModal) default: return key } |