mirror of
https://github.com/github/semantic.git
synced 2025-01-05 05:58:34 +03:00
Only adjoin the rows once.
This commit is contained in:
parent
167ad6087b
commit
69307c76d1
@ -162,8 +162,7 @@ annotatedToRows (Annotated (Info left _ leftCategories, Info right _ rightCatego
|
||||
sumRows (rows, previousIndices) child = (allRows, ends childRanges)
|
||||
where
|
||||
separatorRows = contextRows (starts childRanges) previousIndices sources
|
||||
unadjoinedRows = rows ++ separatorRows ++ childRows
|
||||
allRows = reverse $ foldl adjoin2 [] unadjoinedRows
|
||||
allRows = rows ++ separatorRows ++ childRows
|
||||
(childRows, childRanges) = diffToRows child previousIndices before after
|
||||
|
||||
contextRows :: (Int, Int) -> (Int, Int) -> (String, String) -> [Row]
|
||||
|
Loading…
Reference in New Issue
Block a user