diff options
author | Robin Jarry <robin@jarry.cc> | 2024-02-08 23:39:09 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-02-22 21:47:32 +0100 |
commit | 73daa9fbd046471dd2afc2f7b454317597b7ab03 (patch) | |
tree | 5e876be70085b3c6723f394296869a2a31a80ba0 /commands | |
parent | 6e6a8678531c17a9a3599b86d63b8d24bfc7f7c0 (diff) | |
download | aerc-73daa9fbd046471dd2afc2f7b454317597b7ab03.tar.gz |
commands: remove compose commands from message viewer
All compose commands were made available in the message viewer context
by mistake. Remove them.
This fixes a crash when the :send command is invoked while viewing
a message:
Fixes: 159fb38daf53 ("commands: refactor registration")
Fixes: https://lists.sr.ht/~rjarry/aerc-devel/%3CCZ01NTGWNUBV.14A9POG9ITJ6F%40posteo.net%3E
Changelog-fixed: Fixed crash when running `:send` with a `:preview`
tab focused.
Reported-by: Sertonix <sertonix@posteo.net>
Signed-off-by: Robin Jarry <robin@jarry.cc>
Tested-by: Maarten Aertsen <maarten@nlnetlabs.nl>
Diffstat (limited to 'commands')
-rw-r--r-- | commands/commands.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/commands.go b/commands/commands.go index ab9c3e63..71976d05 100644 --- a/commands/commands.go +++ b/commands/commands.go @@ -46,7 +46,7 @@ func CurrentContext() CommandContext { case *app.Composer: context |= COMPOSE case *app.MessageViewer: - context |= COMPOSE | MESSAGE | MESSAGE_VIEWER + context |= MESSAGE | MESSAGE_VIEWER case *app.Terminal: context |= TERMINAL } |