From ba24e92062f1a9b38065d503fd1dde749c27a56c Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Fri, 7 Oct 2022 11:00:31 -0500 Subject: invalidatable: cleanup dead code Remove invalidatable type and all associated calls. All items can directly invalidate the UI. Signed-off-by: Tim Culverhouse Acked-by: Robin Jarry --- commands/account/next.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'commands/account/next.go') diff --git a/commands/account/next.go b/commands/account/next.go index c9c26809..15dc5363 100644 --- a/commands/account/next.go +++ b/commands/account/next.go @@ -6,6 +6,7 @@ import ( "strconv" "strings" + "git.sr.ht/~rjarry/aerc/lib/ui" "git.sr.ht/~rjarry/aerc/widgets" ) @@ -65,13 +66,13 @@ func ExecuteNextPrevMessage(args []string, acct *widgets.AccountView, pct bool, store := acct.Store() if store != nil { store.NextPrev(-n) - acct.Messages().Invalidate() + ui.Invalidate() } } else { store := acct.Store() if store != nil { store.NextPrev(n) - acct.Messages().Invalidate() + ui.Invalidate() } } return nil -- cgit