aboutsummaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorTim Culverhouse <tim@timculverhouse.com>2022-10-19 12:48:02 -0500
committerRobin Jarry <robin@jarry.cc>2022-10-19 21:01:55 +0200
commitee964ad6b0bd8ee42e903e25b75d9985dc2ff40e (patch)
tree61d28d5363384ba503c56aab3cd9fdcfa8d1fcef /commands
parent3687b1814990bcbf75cc1d98910c3e3125d9e192 (diff)
downloadaerc-ee964ad6b0bd8ee42e903e25b75d9985dc2ff40e.tar.gz
command/help: remove helpClose function
The helpClose function is used to call UpdateScreen on MessageViewer, which has the effect of invalidating and redrawing the message view. This logic is redundant with the addition of tcell-term and the main event loop. Remove the helpClose calls. Remove the UpdateScreen methods from messageviewer: those functions are only used by the helpClose function. Signed-off-by: Tim Culverhouse <tim@timculverhouse.com> Acked-by: Koni Marti <koni.marti@gmail.com>
Diffstat (limited to 'commands')
-rw-r--r--commands/help.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/commands/help.go b/commands/help.go
index 9e1d1140..498f9bce 100644
--- a/commands/help.go
+++ b/commands/help.go
@@ -50,7 +50,6 @@ func (Help) Execute(aerc *widgets.Aerc, args []string) error {
aerc.HumanReadableBindings(),
aerc.SelectedAccountUiConfig(),
func(_ string) {
- helpClose(aerc)
aerc.CloseDialog()
},
),
@@ -61,9 +60,3 @@ func (Help) Execute(aerc *widgets.Aerc, args []string) error {
return TermCore(aerc, []string{"term", "man", page})
}
-
-func helpClose(aerc *widgets.Aerc) {
- if content, ok := aerc.SelectedTabContent().(*widgets.MessageViewer); ok {
- content.UpdateScreen()
- }
-}