setting the cursor position to the right place inside the editor, after removing the markers