nodist: Fix git_untabify --narrow.

This commit is contained in:
Wilson Snyder 2019-05-16 21:32:50 -04:00
parent 01725f662f
commit 8d6bea8975

View File

@ -87,6 +87,8 @@ sub find_edits {
my $hunk = $editlines->{$lineno}{hunk};
$hunk_lastlines{$hunk} ||= $lineno if $editlines->{$lineno}{user_edit};
}
if ($Opt_Widen) {
# Expand to include }'s that finish basic block
foreach my $hunk (keys %hunk_lastlines) {
while (my $lineno = $hunk_lastlines{$hunk}) {
@ -110,6 +112,7 @@ sub find_edits {
++$hunk_lastlines{$hunk};
}
}
}
foreach my $lineno (sort {$a <=> $b} keys %$editlines) {
if (($editlines->{$lineno}{line}||"") =~ /\t/) {