diff options
Diffstat (limited to 'widgets/msglist.go')
-rw-r--r-- | widgets/msglist.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/widgets/msglist.go b/widgets/msglist.go index fc5b46b5..e3f3f14e 100644 --- a/widgets/msglist.go +++ b/widgets/msglist.go @@ -232,17 +232,16 @@ func (ml *MessageList) drawRow(textWidth int, ctx *ui.Context, uid uint32, row i if _, ok := store.Deleted[msg.Uid]; ok { msg_styles = append(msg_styles, config.STYLE_MSGLIST_DELETED) } + // search result + if store.IsResult(msg.Uid) { + msg_styles = append(msg_styles, config.STYLE_MSGLIST_RESULT) + } // marked message if store.Marker().IsMarked(msg.Uid) { 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() { |