mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 17:40:27 +00:00
b738929195
`i` is used as the index for 'old lines' in diff generation, not 'new lines'. Using the wrong index would mean that for certain diffs the prefixed context information would have wrong content, and could even result in a crash. Fix this, and add a test for an input which was previously crashing. |
||
---|---|---|
.. | ||
Applier.cpp | ||
Applier.h | ||
CMakeLists.txt | ||
Format.cpp | ||
Format.h | ||
Forward.h | ||
Generator.cpp | ||
Generator.h | ||
Hunks.cpp | ||
Hunks.h |