aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authory0ast <joost@joo.st>2020-12-23 18:03:33 +0100
committerReto Brunner <reto@labrat.space>2020-12-24 10:26:18 +0100
commit3edbe0c67ceae5f1464c07d3d7dd6673a3b98d3a (patch)
treeb2e3e55cfd428b21f892b22a8e7ebd3d39029a6b
parent03650474e2190ef6e54413d433b3d1f63dc9993e (diff)
downloadaerc-3edbe0c67ceae5f1464c07d3d7dd6673a3b98d3a.tar.gz
add italics support
Fixes: https://todo.sr.ht/~sircmpwn/aerc2/416 Co-authored-by: JD <john1doe@ya.ru>
-rw-r--r--widgets/terminal.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/widgets/terminal.go b/widgets/terminal.go
index e83c812f..02775215 100644
--- a/widgets/terminal.go
+++ b/widgets/terminal.go
@@ -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)
}