aboutsummaryrefslogtreecommitdiff
path: root/ui/view-main.go
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-04-14 15:33:20 +0300
committerTulir Asokan <tulir@maunium.net>2018-04-14 15:33:20 +0300
commitd060d10615434c557373ee00ba009cc8b583e881 (patch)
tree1565707aa0a64e35c7ee387e2e0f74fe187c896a /ui/view-main.go
parentba3a6f5614b9102882566f6581ed7ec387119707 (diff)
Allow clicking names to mention them
Diffstat (limited to 'ui/view-main.go')
-rw-r--r--ui/view-main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/view-main.go b/ui/view-main.go
index 50304fc..d4ffd39 100644
--- a/ui/view-main.go
+++ b/ui/view-main.go
@@ -248,7 +248,9 @@ func (view *MainView) MouseEventHandler(roomView *RoomView, event *tcell.EventMo
default:
mx, my, mw, mh := msgView.GetRect()
if x >= mx && y >= my && x < mx+mw && y < my+mh {
- msgView.HandleClick(x-mx, y-my, event.Buttons())
+ if msgView.HandleClick(x-mx, y-my, event.Buttons()) {
+ view.parent.Render()
+ }
} else {
debug.Print("Mouse event received:", event.Buttons(), event.Modifiers(), x, y)
}