Tie end points of edit lines together