~sircmpwn/aerc

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH] select next message when deleting from message viewer

Details
Message ID
<20190801152703.27029-1-adityasri@ocf.berkeley.edu>
DKIM signature
pass
Download raw message
Patch: +10 -3
From: Aditya Srivastava <adityasri163@gmail.com>

---
 commands/msg/delete.go | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/commands/msg/delete.go b/commands/msg/delete.go
index 55d7f68..06cef9c 100644
--- a/commands/msg/delete.go
+++ b/commands/msg/delete.go
@@ -43,11 +43,18 @@ func (_ Delete) Execute(aerc *widgets.Aerc, args []string) error {
		return err
	}
	_, isMsgView := widget.(*widgets.MessageViewer)
	mv, _ := aerc.SelectedTab().(*widgets.MessageViewer)
	store.Next()
	if isMsgView {
		aerc.RemoveTab(widget)
		nextMsg := store.Selected()
		if nextMsg == msg {
			aerc.RemoveTab(widget)
			acct.Messages().Scroll()
		} else {
			nextMv := widgets.NewMessageViewer(acct, aerc.Config(), store, nextMsg)
			aerc.ReplaceTab(mv, nextMv, nextMsg.Envelope.Subject)
		}
	}
	store.Next()
	acct.Messages().Scroll()
	store.Delete([]uint32{msg.Uid}, func(msg types.WorkerMessage) {
		switch msg := msg.(type) {
		case *types.Done:
-- 
2.22.0
Details
Message ID
<BVZ6O606CKDL.1L0ND7Y0G2233@homura>
In-Reply-To
<20190801152703.27029-1-adityasri@ocf.berkeley.edu> (view parent)
DKIM signature
pass
Download raw message
Thanks!

To git.sr.ht:~sircmpwn/aerc
   c9a909f..b72bb27  master -> master