Would the very corner of a selection box clipping a line segment cause the whole line to be selected?
I'm not entirely sure what the best implementation approach is, but I can tell you that, as a user, I surely do not mean to select the line in this situation