From 1f682fc610de1beb57c68b92fe98bf057483773c Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Wed, 26 Oct 2022 11:05:23 -0500 Subject: msglist: style search results Add option to style search results in the message list. Set default style for results. Signed-off-by: Tim Culverhouse Acked-by: Robin Jarry --- widgets/msglist.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'widgets/msglist.go') diff --git a/widgets/msglist.go b/widgets/msglist.go index 23d319da..ef29724a 100644 --- a/widgets/msglist.go +++ b/widgets/msglist.go @@ -250,6 +250,11 @@ func (ml *MessageList) drawRow(textWidth int, ctx *ui.Context, uid uint32, row i msg_styles = append(msg_styles, config.STYLE_MSGLIST_MARKED) } + // search result + if store.IsResult(msg.Uid) { + msg_styles = append(msg_styles, config.STYLE_MSGLIST_RESULT) + } + var style tcell.Style // current row if msg.Uid == ml.store.SelectedUid() { -- cgit