aboutsummaryrefslogtreecommitdiffstats
path: root/aerc.go
diff options
context:
space:
mode:
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 6144e539..d43ed935 100644
--- a/aerc.go
+++ b/aerc.go
@@ -59,7 +59,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.SelectedTabContent())
for i, set := range cmds {
err := set.ExecuteCommand(aerc, cmd)
if _, ok := err.(commands.NoSuchCommand); ok {
@@ -81,7 +81,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.SelectedTabContent()) {
completions = append(completions, set.GetCompletions(aerc, cmd)...)
}
sort.Strings(completions)