Skip to content

Commit 54a978c

Browse files
committed
next_directive_pos now stops at the next head section
1 parent c79069a commit 54a978c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Porting/merge-deltas.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ ( $tree, $directive, $pos = 0 )
3434
while ( $pos < @$tree ) {
3535
next
3636
unless ref( $tree->[$pos] ) eq 'ARRAY';
37+
last if $tree->[$pos][0] =~ /\A=head[1-4]\z/;
3738
next unless $tree->[$pos][0] eq $directive;
3839
return $pos;
3940
}

0 commit comments

Comments
 (0)