Skip to content

Commit afe977f

Browse files
Logic fix for reading the config
1 parent abf8c62 commit afe977f

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
@@ -621,7 +621,7 @@ sub check_first_run {
621621
# If first-run is not set, or it's set to "true"
622622
my $first_run = git_config_boolean('diff-so-fancy.first-run');
623623
# See if they're previously set SOME diff-highlight colors
624-
my $has_dh_colors = git_config_boolean($i->{'color.diff-highlight.oldnormal'}) || git_config_boolean($i->{'color.diff-highlight.newnormal'});
624+
my $has_dh_colors = git_config_boolean('color.diff-highlight.oldnormal') || git_config_boolean('color.diff-highlight.newnormal');
625625

626626
if (!$first_run || $has_dh_colors) {
627627
return 0;

0 commit comments

Comments
 (0)