Skip to content

Commit

Permalink
Clamp hostname colors for better compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
justjanne committed Jul 22, 2020
1 parent 1f786bb commit 59fef95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion segment-hostname.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func segmentHost(p *powerline) []pwl.Segment {
background = uint8(backgroundEnv)
} else {
hash := getMd5(hostName)
background = hash[0]
background = hash[0] % 128
foreground = p.theme.HostnameColorizedFgMap[background]
}
} else {
Expand Down

0 comments on commit 59fef95

Please sign in to comment.