diff --git a/ui/widget/center.go b/ui/widget/center.go index 45312e2..8d22528 100644 --- a/ui/widget/center.go +++ b/ui/widget/center.go @@ -26,9 +26,9 @@ func Center(width, height int, p tview.Primitive) tview.Primitive { return tview.NewFlex(). AddItem(tview.NewBox(), 0, 1, false). AddItem(tview.NewFlex(). - SetDirection(tview.FlexRow). - AddItem(tview.NewBox(), 0, 1, false). - AddItem(p, height, 1, true). - AddItem(tview.NewBox(), 0, 1, false), width, 1, true). + SetDirection(tview.FlexRow). + AddItem(tview.NewBox(), 0, 1, false). + AddItem(p, height, 1, true). + AddItem(tview.NewBox(), 0, 1, false), width, 1, true). AddItem(tview.NewBox(), 0, 1, false) } diff --git a/ui/widget/color.go b/ui/widget/color.go index 57f943f..12ee791 100644 --- a/ui/widget/color.go +++ b/ui/widget/color.go @@ -30,7 +30,7 @@ var colorNames []string func init() { colorNames = make([]string, len(tcell.ColorNames)) i := 0 - for name, _ := range tcell.ColorNames { + for name := range tcell.ColorNames { colorNames[i] = name i++ } diff --git a/ui/widget/message-view.go b/ui/widget/message-view.go index e48dddf..f0bdbad 100644 --- a/ui/widget/message-view.go +++ b/ui/widget/message-view.go @@ -130,7 +130,7 @@ func (view *MessageView) updateWidestSender(sender string) { type MessageDirection int const ( - AppendMessage MessageDirection = iota + AppendMessage MessageDirection = iota PrependMessage IgnoreMessage )