summary refs log tree commit diff stats
path: root/widgets
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-04-24 12:59:40 -0400
committerDrew DeVault <sir@cmpwn.com>2020-04-24 12:59:40 -0400
commit6f8ad918240fecc10ef4ef93768853157287c13d (patch)
tree5e91e81d5c23fed9fc455a9fd5f534f0276e78a4 /widgets
parent92f59ef94af4ce936a5ea3a4407360e558317744 (diff)
downloadaerc-6f8ad918240fecc10ef4ef93768853157287c13d.tar.gz
gofmt fixes
Diffstat (limited to 'widgets')
-rw-r--r--widgets/account-wizard.go6
-rw-r--r--widgets/aerc.go8
2 files changed, 7 insertions, 7 deletions
diff --git a/widgets/account-wizard.go b/widgets/account-wizard.go
index e9bd843..6f93367 100644
--- a/widgets/account-wizard.go
+++ b/widgets/account-wizard.go
@@ -414,7 +414,7 @@ func (wizard *AccountWizard) ConfigureTemporaryAccount(temporary bool) {
 
 func (wizard *AccountWizard) errorFor(d ui.Interactive, err error) {
 	if d == nil {
-		wizard.aerc.PushError(" "+err.Error())
+		wizard.aerc.PushError(" " + err.Error())
 		wizard.Invalidate()
 		return
 	}
@@ -429,7 +429,7 @@ func (wizard *AccountWizard) errorFor(d ui.Interactive, err error) {
 				wizard.step = step
 				wizard.focus = focus
 				wizard.Focus(true)
-				wizard.aerc.PushError(" "+err.Error())
+				wizard.aerc.PushError(" " + err.Error())
 				wizard.Invalidate()
 				return
 			}
@@ -540,7 +540,7 @@ func (wizard *AccountWizard) finish(tutorial bool) {
 		term.OnClose = func(err error) {
 			wizard.aerc.RemoveTab(term)
 			if err != nil {
-				wizard.aerc.PushError(" "+err.Error())
+				wizard.aerc.PushError(" " + err.Error())
 			}
 		}
 	}
diff --git a/widgets/aerc.go b/widgets/aerc.go
index 779e386..23b8901 100644
--- a/widgets/aerc.go
+++ b/widgets/aerc.go
@@ -416,11 +416,11 @@ func (aerc *Aerc) BeginExCommand(cmd string) {
 	exline := NewExLine(aerc.conf, cmd, func(cmd string) {
 		parts, err := shlex.Split(cmd)
 		if err != nil {
-			aerc.PushError(" "+err.Error())
+			aerc.PushError(" " + err.Error())
 		}
 		err = aerc.cmd(parts)
 		if err != nil {
-			aerc.PushError(" "+err.Error())
+			aerc.PushError(" " + err.Error())
 		}
 		// only add to history if this is an unsimulated command,
 		// ie one not executed from a keybinding
@@ -444,7 +444,7 @@ func (aerc *Aerc) RegisterPrompt(prompt string, cmd []string) {
 		}
 		err := aerc.cmd(cmd)
 		if err != nil {
-			aerc.PushError(" "+err.Error())
+			aerc.PushError(" " + err.Error())
 		}
 	}, func(cmd string) []string {
 		return nil // TODO: completions
@@ -458,7 +458,7 @@ func (aerc *Aerc) RegisterChoices(choices []Choice) {
 	for _, c := range choices {
 		text := fmt.Sprintf("[%s] %s", c.Key, c.Text)
 		if strings.Contains(c.Text, c.Key) {
-			text = strings.Replace(c.Text, c.Key, "[" + c.Key + "]", 1)
+			text = strings.Replace(c.Text, c.Key, "["+c.Key+"]", 1)
 		}
 		texts = append(texts, text)
 		cmds[c.Key] = c.Command