aboutsummaryrefslogtreecommitdiff
path: root/ui/view-main.go
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-04-23 00:04:10 +0300
committerTulir Asokan <tulir@maunium.net>2018-04-23 00:04:10 +0300
commitea965766b4cac0fc9e4df7babe2347cfcf850b9b (patch)
tree3d7a567ead256deef1991407ba84ad9bb52948e4 /ui/view-main.go
parentfafc7f55be8c206d52de72522645091dd7a73b03 (diff)
Gofmt and enable a test
Diffstat (limited to 'ui/view-main.go')
-rw-r--r--ui/view-main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/view-main.go b/ui/view-main.go
index ba98719..c693fcd 100644
--- a/ui/view-main.go
+++ b/ui/view-main.go
@@ -240,7 +240,7 @@ func (view *MainView) MouseEventHandler(roomView *RoomView, event *tcell.EventMo
}
} else if isInArea(x, y, view.roomList) && event.Buttons() == tcell.Button1 {
_, rly, _, _ := msgView.GetRect()
- n := y-rly+1
+ n := y - rly + 1
if n >= 0 && n < len(view.roomIDs) {
view.SwitchRoom(n)
}