diff options
author | Koni Marti <koni.marti@gmail.com> | 2024-01-29 23:52:27 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-02-11 21:24:48 +0100 |
commit | 635fe05d4e8ee5a6dbadf7d10b6d8340efcbc84d (patch) | |
tree | 65ba851998ff11ac20f55d34604ef317537e0e57 /app/msglist.go | |
parent | 1068365afa0c2a0f55d37b17360ad832657531a0 (diff) | |
download | aerc-635fe05d4e8ee5a6dbadf7d10b6d8340efcbc84d.tar.gz |
config: add msglist-scroll-offset
Add the [ui].msglist-scroll-offset option in aerc.conf to set the scroll
offset in number of lines from the top and bottom of the message list.
Changelog-added: Add `[ui].msglist-scroll-offset` option to set a
scroll offset for the message list.
Suggested-by: Ángel Castañeda <angel@acsq.me>
Signed-off-by: Koni Marti <koni.marti@gmail.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'app/msglist.go')
-rw-r--r-- | app/msglist.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/msglist.go b/app/msglist.go index 63089536..a5e5fbb6 100644 --- a/app/msglist.go +++ b/app/msglist.go @@ -320,6 +320,8 @@ func (ml *MessageList) storeUpdate(store *lib.MessageStore) { func (ml *MessageList) SetStore(store *lib.MessageStore) { if ml.Store() != store { ml.Scrollable = Scrollable{} + n := SelectedAccountUiConfig().MsglistScrollOffset + ml.SetOffset(n) } ml.store = store if store != nil { |