Fixed so both selection and cursor move works with bold/italic