File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -936,7 +936,12 @@ sub git_ansi_color {
936
936
push (@ansi_part , " 38;5;$fg " );
937
937
# It's a simple 16 color OG ansi
938
938
} elsif ($fg ) {
939
- push (@ansi_part , $colors -> {$fg } + 30);
939
+ my $bright = $fg =~ s / bright// ;
940
+ my $color_num = $colors -> {$fg } + 30;
941
+
942
+ if ($bright ) { $color_num += 8; }
943
+
944
+ push (@ansi_part , $color_num );
940
945
}
941
946
942
947
# ############################################
@@ -949,7 +954,12 @@ sub git_ansi_color {
949
954
push (@ansi_part , 7);
950
955
# It's a simple 16 color OG ansi
951
956
} elsif ($bg ) {
952
- push (@ansi_part , $colors -> {$fg } + 40);
957
+ my $bright = $bg =~ s / bright// ;
958
+ my $color_num = $colors -> {$bg } + 30;
959
+
960
+ if ($bright ) { $color_num += 8; }
961
+
962
+ push (@ansi_part , $color_num );
953
963
}
954
964
955
965
# ############################################
You can’t perform that action at this time.
0 commit comments