join lines with selection