From 75869f0ac3d5106744b07421ad2885ff903236c0 Mon Sep 17 00:00:00 2001 From: Paul Ouellette Date: Sat, 1 Oct 2022 09:32:39 -0400 Subject: [PATCH] support italic escape code in previews (#936) --- colors.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/colors.go b/colors.go index d8a69ff7..e76e5d89 100644 --- a/colors.go +++ b/colors.go @@ -110,6 +110,8 @@ func applyAnsiCodes(s string, st tcell.Style) tcell.Style { st = st.Bold(true) case n == 2: st = st.Dim(true) + case n == 3: + st = st.Italic(true) case n == 4: st = st.Underline(true) case n == 5 || n == 6: