Skip to content

Commit 27ef460

Browse files
Add git color support for reverse
'red bold reverse' should now work
1 parent e628804 commit 27ef460

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

diff-so-fancy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -947,6 +947,9 @@ sub git_ansi_color {
947947
# It's an RGB value
948948
if (is_numeric($bg)) {
949949
push(@ansi_part, "48;5;$bg");
950+
# Inverse/Reverse
951+
} elsif ($bg =~ /reverse/i) {
952+
push(@ansi_part, 7);
950953
# It's a simple 16 color OG ansi
951954
} elsif ($bg) {
952955
push(@ansi_part, $colors->{$fg} + 40);

0 commit comments

Comments
 (0)