Commit 9bda06b1 authored by yann300's avatar yann300

scrollToLine instead of focusing

parent 03c1f4f0
...@@ -470,7 +470,7 @@ class Editor extends Plugin { ...@@ -470,7 +470,7 @@ class Editor extends Plugin {
filePath = filePath || this.currentFile filePath = filePath || this.currentFile
if (opt.focus) { if (opt.focus) {
await this.call('fileManager', 'open', filePath) 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') await this.addDecoration({ position }, filePath, 'markerPerFile')
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment