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().
|
return tview.NewFlex().
|
||||||
AddItem(tview.NewBox(), 0, 1, false).
|
AddItem(tview.NewBox(), 0, 1, false).
|
||||||
AddItem(tview.NewFlex().
|
AddItem(tview.NewFlex().
|
||||||
SetDirection(tview.FlexRow).
|
SetDirection(tview.FlexRow).
|
||||||
AddItem(tview.NewBox(), 0, 1, false).
|
AddItem(tview.NewBox(), 0, 1, false).
|
||||||
AddItem(p, height, 1, true).
|
AddItem(p, height, 1, true).
|
||||||
AddItem(tview.NewBox(), 0, 1, false), width, 1, true).
|
AddItem(tview.NewBox(), 0, 1, false), width, 1, true).
|
||||||
AddItem(tview.NewBox(), 0, 1, false)
|
AddItem(tview.NewBox(), 0, 1, false)
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,7 @@ var colorNames []string
|
|||||||
func init() {
|
func init() {
|
||||||
colorNames = make([]string, len(tcell.ColorNames))
|
colorNames = make([]string, len(tcell.ColorNames))
|
||||||
i := 0
|
i := 0
|
||||||
for name, _ := range tcell.ColorNames {
|
for name := range tcell.ColorNames {
|
||||||
colorNames[i] = name
|
colorNames[i] = name
|
||||||
i++
|
i++
|
||||||
}
|
}
|
||||||
|
@ -130,7 +130,7 @@ func (view *MessageView) updateWidestSender(sender string) {
|
|||||||
type MessageDirection int
|
type MessageDirection int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
AppendMessage MessageDirection = iota
|
AppendMessage MessageDirection = iota
|
||||||
PrependMessage
|
PrependMessage
|
||||||
IgnoreMessage
|
IgnoreMessage
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user