From cc28c7b65f9aa53a6bb1f0162f6124e1ad5edac2 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Tue, 22 May 2018 17:24:47 +0300 Subject: Gofmt --- ui/room-list.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ui/room-list.go') diff --git a/ui/room-list.go b/ui/room-list.go index 0bf44e4..75d874f 100644 --- a/ui/room-list.go +++ b/ui/room-list.go @@ -22,12 +22,12 @@ import ( "strconv" "strings" + "math" "maunium.net/go/gomuks/debug" "maunium.net/go/gomuks/matrix/rooms" "maunium.net/go/gomuks/ui/widget" "maunium.net/go/tcell" "maunium.net/go/tview" - "math" ) type orderedRoom struct { @@ -446,7 +446,7 @@ func (list *RoomList) Previous() (string, *rooms.Room) { indexInvisible := tagRoomList.Index(list.selected) if index == -1 && indexInvisible >= 0 { num := tagRoomList.TotalLength() - indexInvisible - tagRoomList.maxShown = int(math.Ceil(float64(num) / 10.0) * 10.0) + tagRoomList.maxShown = int(math.Ceil(float64(num)/10.0) * 10.0) index = tagRoomList.IndexVisible(list.selected) } @@ -479,7 +479,7 @@ func (list *RoomList) Next() (string, *rooms.Room) { indexInvisible := tagRoomList.Index(list.selected) if index == -1 && indexInvisible >= 0 { num := tagRoomList.TotalLength() - indexInvisible + 1 - tagRoomList.maxShown = int(math.Ceil(float64(num) / 10.0) * 10.0) + tagRoomList.maxShown = int(math.Ceil(float64(num)/10.0) * 10.0) index = tagRoomList.IndexVisible(list.selected) } -- cgit v1.2.3