~rjarry/aerc-devel

aerc: split: remove previous split from grid v1 APPLIED

Tim Culverhouse: 1
 split: remove previous split from grid

 1 files changed, 1 insertions(+), 0 deletions(-)
#1056665 alpine-edge.yml success
#1056666 openbsd.yml success
Moritz Poldrack, Sep 12, 2023 at 17:07:
Next
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~rjarry/aerc-devel/patches/44607/mbox | git am -3
Learn more about email & git

[PATCH aerc] split: remove previous split from grid Export this patch

Remove the previous split from the account grid view. When adding a new
child at an existing location, the content is appended to a slice
instead of replacing any old values. The old content must be explicitly
removed.

Reported-by: inwit <inwit@sindominio.net>
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
---
 widgets/account.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/widgets/account.go b/widgets/account.go
index b5c71c297e73..7c4a5e17d4df 100644
--- a/widgets/account.go
+++ b/widgets/account.go
@@ -541,6 +541,7 @@ func (acct *AccountView) updateSplitView(msg *models.MessageInfo) {
	}
	fn := func() {
		if acct.split != nil {
			acct.grid.RemoveChild(acct.split)
			acct.split.Close()
		}
		lib.NewMessageStoreView(msg, false, acct.Store(), acct.aerc.Crypto, acct.aerc.DecryptKeys,
-- 
2.42.0
aerc/patches: SUCCESS in 4m51s

[split: remove previous split from grid][0] from [Tim Culverhouse][1]

[0]: https://lists.sr.ht/~rjarry/aerc-devel/patches/44607
[1]: mailto:tim@timculverhouse.com

✓ #1056666 SUCCESS aerc/patches/openbsd.yml     https://builds.sr.ht/~rjarry/job/1056666
✓ #1056665 SUCCESS aerc/patches/alpine-edge.yml https://builds.sr.ht/~rjarry/job/1056665
Reviewed-by: Moritz Poldrack <moritz@poldrack.dev>
-- 
Moritz Poldrack
https://moritz.sh