Adding invert selection and split selection into lines