Reapply 'Fix nil pointer deref on Envelope'
The commitbf16ccde48
appears to have been unintentionally dropped by commit905cb9dfd3
(Implement style configuration).
This commit is contained in:
parent
889d89b42e
commit
3c14c2cb34
1 changed files with 6 additions and 3 deletions
|
@ -102,11 +102,14 @@ func (ml *MessageList) Draw(ctx *ui.Context) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
uiConfig := ml.conf.GetUiConfig(map[config.ContextType]string{
|
confParams := map[config.ContextType]string{
|
||||||
config.UI_CONTEXT_ACCOUNT: ml.aerc.SelectedAccount().AccountConfig().Name,
|
config.UI_CONTEXT_ACCOUNT: ml.aerc.SelectedAccount().AccountConfig().Name,
|
||||||
config.UI_CONTEXT_FOLDER: ml.aerc.SelectedAccount().Directories().Selected(),
|
config.UI_CONTEXT_FOLDER: ml.aerc.SelectedAccount().Directories().Selected(),
|
||||||
config.UI_CONTEXT_SUBJECT: msg.Envelope.Subject,
|
}
|
||||||
})
|
if msg.Envelope != nil {
|
||||||
|
confParams[config.UI_CONTEXT_SUBJECT] = msg.Envelope.Subject
|
||||||
|
}
|
||||||
|
uiConfig := ml.conf.GetUiConfig(confParams)
|
||||||
|
|
||||||
msg_styles := []config.StyleObject{}
|
msg_styles := []config.StyleObject{}
|
||||||
// unread message
|
// unread message
|
||||||
|
|
Loading…
Reference in a new issue