store the last selected line and use it as the other end for multiple selection