I'm remembering why the call to `cm.scrollIntoView()` was here. The following call to `editor.setSelection()` will correctly position the selection **vertically** but does not adjust **horizontal** position. The call to `cm.scrollIntoView()` is to make sure selection is in view **horizontally** (anywhere in viewport; no requirement/dsire to center).