We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5c661a commit 2e8ba08Copy full SHA for 2e8ba08
client/modules/IDE/components/Editor.jsx
@@ -346,9 +346,8 @@ class Editor extends React.Component {
346
}
347
);
348
this._cm.doc.setValue(formatted);
349
- if (cursorOffset) {
350
- this._cm.doc.setCursor(this._cm.doc.posFromIndex(cursorOffset));
351
- }
+ this._cm.focus();
+ this._cm.doc.setCursor(this._cm.doc.posFromIndex(cursorOffset));
352
} catch (error) {
353
console.error(error);
354
0 commit comments