aboutsummaryrefslogtreecommitdiffstats
path: root/aerc.go
diff options
context:
space:
mode:
authorConnor Kuehl <cipkuehl@gmail.com>2022-04-14 16:30:23 -0500
committerRobin Jarry <robin@jarry.cc>2022-04-14 23:48:28 +0200
commitc6dae02925ae4a970210125b06f3fb9458f1d3fd (patch)
tree446918482c86d06a7981251b17b245ea361b62fe /aerc.go
parentdc271b4da2ac6e17303e284f1de18a340deebcd0 (diff)
downloadaerc-c6dae02925ae4a970210125b06f3fb9458f1d3fd.tar.gz
main: remove unnecessary pointer dereference
Calling a method on a pointer will dereference it automatically. Signed-off-by: Connor Kuehl <cipkuehl@gmail.com> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'aerc.go')
-rw-r--r--aerc.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/aerc.go b/aerc.go
index 9d93a501..f9a19a31 100644
--- a/aerc.go
+++ b/aerc.go
@@ -58,7 +58,7 @@ func getCommands(selected libui.Drawable) []*commands.Commands {
}
func execCommand(aerc *widgets.Aerc, ui *libui.UI, cmd []string) error {
- cmds := getCommands((*aerc).SelectedTab())
+ cmds := getCommands(aerc.SelectedTab())
for i, set := range cmds {
err := set.ExecuteCommand(aerc, cmd)
if _, ok := err.(commands.NoSuchCommand); ok {
@@ -80,7 +80,7 @@ func execCommand(aerc *widgets.Aerc, ui *libui.UI, cmd []string) error {
func getCompletions(aerc *widgets.Aerc, cmd string) []string {
var completions []string
- for _, set := range getCommands((*aerc).SelectedTab()) {
+ for _, set := range getCommands(aerc.SelectedTab()) {
completions = append(completions, set.GetCompletions(aerc, cmd)...)
}
sort.Strings(completions)