Skip to content

Commit 04d0425

Browse files
committed
Make sure the first removed file line is also colored
1 parent d243362 commit 04d0425

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diff-so-fancy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ format_diff_header () {
1515
sed -E "s/^($color_code_regex)diff --git .*$//g" | \
1616
sed -E "/$git_index_line_pattern/{N;s/$git_index_line_pattern\n//}" | \
1717
sed -E "s/^($color_code_regex)\-\-\-(.*)$/\1$(print_horizontal_rule)\\
18-
\-\-\-\5/g" |
18+
\1\-\-\-\5/g" |
1919
sed -E "s/^($color_code_regex)\+\+\+(.*)$/\1\+\+\+\5\\
2020
\1$(print_horizontal_rule)/g"
2121
}

0 commit comments

Comments
 (0)