Skip to content

Commit

Permalink
fix bold
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronjanse committed Apr 20, 2020
1 parent a64bff7 commit f4c2c94
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions render/cursor.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ func deltaMarkup(fromCur, toCur Cursor) string {

/* remove effects */

if from.Bold && !to.Bold {
out += "\033[22m"
}

if from.Faint && !to.Faint {
out += "\033[22m"
}
Expand All @@ -78,6 +82,10 @@ func deltaMarkup(fromCur, toCur Cursor) string {

/* add effects */

if !from.Bold && to.Bold {
out += "\033[1m"
}

if !from.Faint && to.Faint {
out += "\033[2m"
}
Expand Down

0 comments on commit f4c2c94

Please sign in to comment.