Config for deleting message from message viewer

As suggested in , this adds a behaviour setting for
deleting message from message viewer.
This commit is contained in:
Srivathsan Murali 2019-09-20 21:22:09 +02:00 committed by Drew DeVault
parent 043a02d99d
commit 1bedb8fe06
4 changed files with 37 additions and 25 deletions
commands/msg

View file

@ -47,7 +47,7 @@ func (Delete) Execute(aerc *widgets.Aerc, args []string) error {
store.Next()
if isMsgView {
nextMsg := store.Selected()
if nextMsg == msg {
if nextMsg == msg || !aerc.Config().Ui.NextMessageOnDelete {
aerc.RemoveTab(widget)
acct.Messages().Scroll()
} else {