Commit 1d6d7c6
committed
Correct mistaken use of InsertDelta instead of DeleteDelta
Bad copy&paste caused use of InsertDelta instead of DeleteDelta
when applying fix for issue dnaumenko#20.
Also improved test to cover empty-context patches that delete lines
to cover this case.1 parent 614e861 commit 1d6d7c6
File tree
3 files changed
+4
-1
lines changed- src
- main/java/difflib
- test/resources/mocks
3 files changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
| 217 | + | |
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
0 commit comments