diff options
author | Tulir Asokan <tulir@maunium.net> | 2018-04-24 22:49:41 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2018-04-24 22:50:04 +0300 |
commit | d7d654e2ec0a1d001f936b1575a3e6af3973a874 (patch) | |
tree | 4cb49fc74b7ebc8a026c434dcb8331a0f3ba9fc7 /ui/room-list.go | |
parent | 6aceb4f8d2061fb99fd16deda58f4807d81a6ff7 (diff) |
Flatten calculateBufferWithText() and gofmt
Diffstat (limited to 'ui/room-list.go')
-rw-r--r-- | ui/room-list.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/room-list.go b/ui/room-list.go index d361a12..9444313 100644 --- a/ui/room-list.go +++ b/ui/room-list.go @@ -58,7 +58,7 @@ func NewRoomList() *RoomList { return &RoomList{ Box: tview.NewBox(), items: make(map[string][]*rooms.Room), - tags: []string{"m.favourite", "im.vector.fake.direct", "", "m.lowpriority"}, + tags: []string{"m.favourite", "im.vector.fake.direct", "", "m.lowpriority"}, mainTextColor: tcell.ColorWhite, selectedTextColor: tcell.ColorWhite, @@ -95,7 +95,7 @@ func (list *RoomList) CheckTag(tag string) { if ok && index == -1 { list.tags = append(list.tags, tag) - }/* TODO this doesn't work properly + } /* TODO this doesn't work properly else if index != -1 { list.tags = append(list.tags[0:index], list.tags[index+1:]...) }*/ |