support italic escape code in previews (#936)

This commit is contained in:
Paul Ouellette 2022-10-01 09:32:39 -04:00 committed by GitHub
parent cb7aa13218
commit 75869f0ac3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,6 +110,8 @@ func applyAnsiCodes(s string, st tcell.Style) tcell.Style {
st = st.Bold(true) st = st.Bold(true)
case n == 2: case n == 2:
st = st.Dim(true) st = st.Dim(true)
case n == 3:
st = st.Italic(true)
case n == 4: case n == 4:
st = st.Underline(true) st = st.Underline(true)
case n == 5 || n == 6: case n == 5 || n == 6: