~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] correctly apply msglist_read color

Details
Message ID
<20200831213151.336870-1-joost@joo.st>
DKIM signature
pass
Download raw message
Patch: +5 -0
msglist_read in the stylesets is currently ignored, this patch fixes
that.

---
 widgets/msglist.go | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/widgets/msglist.go b/widgets/msglist.go
index e38dd9e..dd52c84 100644
--- a/widgets/msglist.go
+++ b/widgets/msglist.go
@@ -125,6 +125,11 @@ func (ml *MessageList) Draw(ctx *ui.Context) {
				flagged = true
			}
		}

		if seen {
			so = config.STYLE_MSGLIST_READ
		}

		if !seen {
			so = config.STYLE_MSGLIST_UNREAD
		}
-- 
2.28.0
Details
Message ID
<20200831221128.kmcpinn74b6y7bwl@feather.localdomain>
In-Reply-To
<20200831213151.336870-1-joost@joo.st> (view parent)
DKIM signature
pass
Download raw message
Hi,

On Mon, Aug 31, 2020 at 10:31:51PM +0100, y0ast wrote:
> +		if seen {
> +			so = config.STYLE_MSGLIST_READ
> +		}
> +
>  		if !seen {
>  			so = config.STYLE_MSGLIST_UNREAD
>  		}

Please use an else clause here... there are only 2 possibilities.

Cheers,
Reto
Review patch Export thread (mbox)