diff options
author | Robin Jarry <robin@jarry.cc> | 2023-06-07 17:45:01 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-06-10 20:11:04 +0200 |
commit | 3f81c848e794ab979b8abeabc1ff9547552c2d41 (patch) | |
tree | 0a0cec2380a40302dfdeb9b86ddd2f1b2e73f462 | |
parent | c4e500c7c107ba9d28d3c15181882e525faf317b (diff) | |
download | aerc-3f81c848e794ab979b8abeabc1ff9547552c2d41.tar.gz |
help: do not run a command when displaying keys
Running :help keys displays the current active key bindings in a dialog.
When the dialog appears, a terminal tab also briefly appears and
disappears immediately since aerc-keys is not an actual man page.
Do not run any command when running :help keys.
Fixes: 5c8a749cfa97 ("binds: display active keybinds in a dialog box")
Signed-off-by: Robin Jarry <robin@jarry.cc>
Acked-by: Moritz Poldrack <moritz@poldrack.dev>
-rw-r--r-- | commands/help.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/help.go b/commands/help.go index 11bee7c9..b09e1143 100644 --- a/commands/help.go +++ b/commands/help.go @@ -58,6 +58,7 @@ func (Help) Execute(aerc *widgets.Aerc, args []string) error { func(h int) int { return h / 4 }, func(h int) int { return h / 2 }, )) + return nil } return TermCore(aerc, []string{"term", "man", page}) |