Skip to content

Commit 5964b51

Browse files
Use a flat config instead of a tree. Fixes #245
1 parent ef5d8f3 commit 5964b51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

diff-so-fancy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,13 +616,13 @@ sub is_windows {
616616

617617
# Return value is whether this is the first time they've run d-s-f
618618
sub check_first_run {
619-
my $i = get_git_config_hash();
619+
my $i = git_config();
620620
my $ret = 0;
621621

622622
# If first-run is not set, or it's set to "true"
623623
my $first_run = git_config_boolean($i->{'diff-so-fancy'}->{'first-run'});
624624
# See if they're previously set SOME diff-highlight colors
625-
my $has_dh_colors = boolean($i->{color}->{'diff-highlight'}->{oldnormal} || $i->{color}->{'diff-highlight'}->{newnormal});
625+
my $has_dh_colors = boolean($i->{'color.diff-highlight.oldnormal'} || $i->{'color.diff-highlight.newnormal'});
626626

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

0 commit comments

Comments
 (0)