Gofmt
This commit is contained in:
parent
1e082f9715
commit
2ba2fde396
@ -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)
|
||||
}
|
||||
|
@ -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++
|
||||
}
|
||||
|
@ -130,7 +130,7 @@ func (view *MessageView) updateWidestSender(sender string) {
|
||||
type MessageDirection int
|
||||
|
||||
const (
|
||||
AppendMessage MessageDirection = iota
|
||||
AppendMessage MessageDirection = iota
|
||||
PrependMessage
|
||||
IgnoreMessage
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user