On 11/06/2014 11:00 AM, Marat Zakirov wrote:
-       if ($doubtfunc) {
-               $idx = $line_idx;
+       $idx = $line_idx;
        # Skip line info in context diffs.
-               while ($is_context_diff && $diff_lines[$idx + 1] =~ /^[-\*]{3} 
[0-9]/) {
-                       ++$idx;
-               }
+       while ($idx <= $#diff_lines && $is_context_diff
+               && $diff_lines[$idx + 1] =~ /^[-\*]{3} [0-9]/) {
+               ++$idx;
+       }

In original mklog this part was only run immediately after start of new hunk (which is correct) whereas with your patch it can now run in the middle of hunk.

-Y

Reply via email to