Skip to content

Commit

Permalink
support italic escape code in previews (#936)
Browse files Browse the repository at this point in the history
  • Loading branch information
p-ouellette authored Oct 1, 2022
1 parent cb7aa13 commit 75869f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions colors.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 75869f0

Please sign in to comment.