mirror of
https://github.com/verilator/verilator.git
synced 2025-01-01 12:17:35 +00:00
nodist: Fix git_untabify --narrow.
This commit is contained in:
parent
01725f662f
commit
8d6bea8975
@ -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/) {
|
||||
|
Loading…
Reference in New Issue
Block a user