From 3f81c848e794ab979b8abeabc1ff9547552c2d41 Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Wed, 7 Jun 2023 17:45:01 +0200 Subject: 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 Acked-by: Moritz Poldrack --- commands/help.go | 1 + 1 file changed, 1 insertion(+) (limited to 'commands') 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}) -- cgit