Gofmt and enable a test
This commit is contained in:
@ -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, ", "))
|
||||
|
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user