Skip to content

Commit

Permalink
Correctly parse COLORFGBG with three values
Browse files Browse the repository at this point in the history
  • Loading branch information
muesli committed Jan 31, 2022
1 parent a0ed747 commit b829d71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion termenv_unix.go
Expand Up @@ -74,7 +74,7 @@ func backgroundColor() Color {
colorFGBG := os.Getenv("COLORFGBG")
if strings.Contains(colorFGBG, ";") {
c := strings.Split(colorFGBG, ";")
i, err := strconv.Atoi(c[1])
i, err := strconv.Atoi(c[len(c)-1])
if err == nil {
return ANSIColor(i)
}
Expand Down

0 comments on commit b829d71

Please sign in to comment.