File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ sub do_dsf_stuff {
196
196
# Mercurial looks like: diff -r 82e55d328c8c hello.c
197
197
if ($4 eq " -r" ) {
198
198
$is_mercurial = 1;
199
- $meta_color || = get_config_color(" meta" );
199
+ $meta_color = get_config_color(" meta" );
200
200
# Git looks like: diff --git a/diff-so-fancy b/diff-so-fancy
201
201
} else {
202
202
$last_file_seen = $5 ;
@@ -212,7 +212,7 @@ sub do_dsf_stuff {
212
212
# Find the first file: --- a/README.md #
213
213
# #######################################
214
214
} elsif (!$in_hunk && $line =~ / ^$ansi_color_regex --- (\w\/ )?(.+?)(\e |\t |$) / ) {
215
- $meta_color || = get_config_color(" meta" );
215
+ $meta_color = get_config_color(" meta" );
216
216
217
217
if ($git_strip_prefix ) {
218
218
my $file_dir = $4 || " " ;
@@ -364,7 +364,7 @@ sub do_dsf_stuff {
364
364
365
365
if ($file1 && $file2 ) {
366
366
# We may not have extracted this yet, so we pull from the config if not
367
- $meta_color || = get_config_color(" meta" );
367
+ $meta_color = get_config_color(" meta" );
368
368
369
369
my $change = file_change_string($file1 ,$file2 );
370
370
Original file line number Diff line number Diff line change @@ -53,9 +53,9 @@ output=$( load_fixture "ls-function" | $diff_so_fancy )
53
53
@test " header format uses a native line-drawing character" {
54
54
header=$( printf " %s" " $output " | head -n3 )
55
55
run printf " %s" " $header "
56
- assert_line --index 0 --partial " [1;33m ─────"
56
+ assert_line --index 0 --partial " ─────"
57
57
assert_line --index 1 --partial " modified: fish/functions/ls.fish"
58
- assert_line --index 2 --partial " [1;33m ─────"
58
+ assert_line --index 2 --partial " ─────"
59
59
}
60
60
61
61
# see https://git.io/vrOF4
@@ -64,9 +64,9 @@ output=$( load_fixture "ls-function" | $diff_so_fancy )
64
64
# pipe to cat(1) so we don't open stdout
65
65
header=$( printf " %s" " $( load_fixture " ls-function" | $diff_so_fancy | cat) " | head -n3 )
66
66
run printf " %s" " $header "
67
- assert_line --index 0 --partial " [1;33m -----"
67
+ assert_line --index 0 --partial " -----"
68
68
assert_line --index 1 --partial " modified: fish/functions/ls.fish"
69
- assert_line --index 2 --partial " [1;33m -----"
69
+ assert_line --index 2 --partial " -----"
70
70
set_env # reset env
71
71
}
72
72
You can’t perform that action at this time.
0 commit comments