aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/room-view.go2
-rw-r--r--ui/view-main.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/ui/room-view.go b/ui/room-view.go
index 4cf7320..5f9a8de 100644
--- a/ui/room-view.go
+++ b/ui/room-view.go
@@ -163,7 +163,7 @@ func (view *RoomView) GetStatus() string {
var buf strings.Builder
if len(view.completions.list) > 0 {
- if view.completions.textCache != view.input.GetText() || view.completions.time.Add(10 * time.Second).Before(time.Now()) {
+ if view.completions.textCache != view.input.GetText() || view.completions.time.Add(10*time.Second).Before(time.Now()) {
view.completions.list = []string{}
} else {
buf.WriteString(strings.Join(view.completions.list, ", "))
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)
}