aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msg/toggle-threads.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/msg/toggle-threads.go')
-rw-r--r--commands/msg/toggle-threads.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/commands/msg/toggle-threads.go b/commands/msg/toggle-threads.go
index d2933bba..21accc2c 100644
--- a/commands/msg/toggle-threads.go
+++ b/commands/msg/toggle-threads.go
@@ -1,6 +1,7 @@
package msg
import (
+ "git.sr.ht/~rjarry/aerc/commands"
"git.sr.ht/~rjarry/aerc/lib/state"
"git.sr.ht/~rjarry/aerc/lib/ui"
)
@@ -8,7 +9,11 @@ import (
type ToggleThreads struct{}
func init() {
- register(ToggleThreads{})
+ commands.Register(ToggleThreads{})
+}
+
+func (ToggleThreads) Context() commands.CommandContext {
+ return commands.MESSAGE
}
func (ToggleThreads) Aliases() []string {