fixed remaining bugs in DiffCharsToLines