Fix horizontal cursor movement.