scrollToLine instead of focusing

pull/1701/head^2
yann300 3 years ago
parent 03c1f4f09b
commit 9bda06b131
  1. 2
      apps/remix-ide/src/app/editor/editor.js

@ -470,7 +470,7 @@ class Editor extends Plugin {
filePath = filePath || this.currentFile
if (opt.focus) {
await this.call('fileManager', 'open', filePath)
this.gotoLine(position.start.line, position.start.column)
this.scrollToLine(position.start.line)
}
await this.addDecoration({ position }, filePath, 'markerPerFile')
}

Loading…
Cancel
Save