Eliminate line reposition edge cases.