adusting caret repositioning after paragraph re-parsing