aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-04-01 10:28:46 +0300
committerTulir Asokan <tulir@maunium.net>2018-04-02 13:47:20 +0300
commit2ba2fde3966211845b1117c85b27e3c947b6307f (patch)
tree1cbe071081a1986b9f063128d5e8def42f347027
parent1e082f9715a2061a7c6aec1efb93e2abc25fc591 (diff)
Gofmt
-rw-r--r--ui/widget/center.go8
-rw-r--r--ui/widget/color.go2
-rw-r--r--ui/widget/message-view.go2
3 files changed, 6 insertions, 6 deletions
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
)