Account for the fact that the cursor changes position during the update to the EditText