From ea965766b4cac0fc9e4df7babe2347cfcf850b9b Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Mon, 23 Apr 2018 00:04:10 +0300 Subject: Gofmt and enable a test --- ui/view-main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/view-main.go') 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) } -- cgit v1.2.3