Skip to content

Commit

Permalink
StyleResolver: fixed default rgb style 'bg-rgb:default'
Browse files Browse the repository at this point in the history
  • Loading branch information
mattirn committed Dec 31, 2020
1 parent c029c9e commit 5558924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terminal/src/main/java/org/jline/utils/StyleResolver.java
Expand Up @@ -57,7 +57,7 @@ private static Integer colorRgb(String name) {
} else {
// load indexed color
Integer color = color(name);
if (color != null) {
if (color != null && color != -1) {
color = Colors.DEFAULT_COLORS_256[color];
}
return color;
Expand Down

0 comments on commit 5558924

Please sign in to comment.