1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 16:33:03 +03:00

Continue the diff through the remainder of the rows.

This commit is contained in:
Rob Rix 2015-12-30 18:19:17 -05:00
parent c5b3058099
commit 7f849f9aab

View File

@ -76,7 +76,7 @@ nextHunk start rows = case nextChange start rows of
Just (offset, change, rest) -> let (changes, rest') = contiguousChanges rest in Just (Hunk offset (change : changes) $ take 3 rest', drop 3 rest')
where contiguousChanges rows = case break rowHasChanges (take 7 rows) of
(_, []) -> ([], rows)
(context, changes) -> case changeIncludingContext context changes of
(context, _) -> case changeIncludingContext context (drop (length context) rows) of
Nothing -> ([], rows)
Just (change, rest) -> let (changes, rest') = contiguousChanges rest in (change : changes, rest')