aboutsummaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2023-06-07 17:45:01 +0200
committerRobin Jarry <robin@jarry.cc>2023-06-10 20:11:04 +0200
commit3f81c848e794ab979b8abeabc1ff9547552c2d41 (patch)
tree0a0cec2380a40302dfdeb9b86ddd2f1b2e73f462 /commands
parentc4e500c7c107ba9d28d3c15181882e525faf317b (diff)
downloadaerc-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>
Diffstat (limited to 'commands')
-rw-r--r--commands/help.go1
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})