From 15b72df1dabb6675c20cff043648e97a209d2132 Mon Sep 17 00:00:00 2001 From: Jeffas Date: Tue, 9 Jun 2020 20:13:13 +0100 Subject: Rework msglist scrolling This changes the scrolling to be done on the draw, when the height is updated, ensuring that the selected item is kept on screen during resizing. Also, this ensures that messages will fill the screen when resizing the window, for instance, shrinking and then growing drags down more messages if possible. This is a transplant of the dirlist scrolling logic. --- commands/msg/archive.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/msg/archive.go') diff --git a/commands/msg/archive.go b/commands/msg/archive.go index 55616748..07de13f7 100644 --- a/commands/msg/archive.go +++ b/commands/msg/archive.go @@ -53,7 +53,7 @@ func (Archive) Execute(aerc *widgets.Aerc, args []string) error { } archiveDir := acct.AccountConfig().Archive store.Next() - acct.Messages().Scroll() + acct.Messages().Invalidate() var uidMap map[string][]uint32 switch args[1] { -- cgit