aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/msglist.go
diff options
context:
space:
mode:
authorTim Culverhouse <tim@timculverhouse.com>2022-10-26 11:05:23 -0500
committerRobin Jarry <robin@jarry.cc>2022-11-06 23:18:06 +0100
commit1f682fc610de1beb57c68b92fe98bf057483773c (patch)
treec5371883c50ffe2e9b8b7c505a288e54f4e03bdf /widgets/msglist.go
parent59510c41c839004f037a20464f368c445a7a91d1 (diff)
downloadaerc-1f682fc610de1beb57c68b92fe98bf057483773c.tar.gz
msglist: style search results
Add option to style search results in the message list. Set default style for results. Signed-off-by: Tim Culverhouse <tim@timculverhouse.com> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'widgets/msglist.go')
-rw-r--r--widgets/msglist.go5
1 files changed, 5 insertions, 0 deletions
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() {