Skip to content

Commit

Permalink
fix(writer): do not print transparent foreground
Browse files Browse the repository at this point in the history
resolves #6101
  • Loading branch information
JanDeDobbeleer committed Jan 26, 2025
1 parent 24b446d commit 2f716f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/terminal/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ func writeSegmentColors() {
writeEscapedAnsiString(fmt.Sprintf(colorise, bg))
}

if !fg.IsEmpty() {
if !fg.IsEmpty() && !fg.IsTransparent() {
writeEscapedAnsiString(fmt.Sprintf(colorise, fg))
}
}
Expand Down

0 comments on commit 2f716f5

Please sign in to comment.