add italics support
Fixes: https://todo.sr.ht/~sircmpwn/aerc2/416 Co-authored-by: JD <john1doe@ya.ru>
This commit is contained in:
parent
03650474e2
commit
3edbe0c67c
1 changed files with 3 additions and 0 deletions
|
@ -425,6 +425,9 @@ func (term *Terminal) styleFromCell(cell *vterm.ScreenCell) tcell.Style {
|
||||||
if cell.Attrs().Bold != 0 {
|
if cell.Attrs().Bold != 0 {
|
||||||
style = style.Bold(true)
|
style = style.Bold(true)
|
||||||
}
|
}
|
||||||
|
if cell.Attrs().Italic != 0 {
|
||||||
|
style = style.Italic(true)
|
||||||
|
}
|
||||||
if cell.Attrs().Underline != 0 {
|
if cell.Attrs().Underline != 0 {
|
||||||
style = style.Underline(true)
|
style = style.Underline(true)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue