add italics support

Fixes: https://todo.sr.ht/~sircmpwn/aerc2/416

Co-authored-by: JD <john1doe@ya.ru>
This commit is contained in:
y0ast 2020-12-23 18:03:33 +01:00 committed by Reto Brunner
parent 03650474e2
commit 3edbe0c67c
1 changed files with 3 additions and 0 deletions

View File

@ -425,6 +425,9 @@ func (term *Terminal) styleFromCell(cell *vterm.ScreenCell) tcell.Style {
if cell.Attrs().Bold != 0 {
style = style.Bold(true)
}
if cell.Attrs().Italic != 0 {
style = style.Italic(true)
}
if cell.Attrs().Underline != 0 {
style = style.Underline(true)
}