set selection and cursor position to end of inserted list