aboutsummaryrefslogtreecommitdiff
path: root/ui/room-list.go
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-05-22 17:24:47 +0300
committerTulir Asokan <tulir@maunium.net>2018-05-22 17:24:47 +0300
commitcc28c7b65f9aa53a6bb1f0162f6124e1ad5edac2 (patch)
treedda36235956309fc4fb514632a3ab7cdd18b4abd /ui/room-list.go
parentcce79ab7d8481a06054166049876c8a2cbb3418f (diff)
Gofmt
Diffstat (limited to 'ui/room-list.go')
-rw-r--r--ui/room-list.go6
1 files changed, 3 insertions, 3 deletions
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)
}