mirror of
https://github.com/atom/atom.git
synced 2026-02-15 00:55:14 -05:00
Respect initialLine and initialColumn options when reopening a file
Fix #1743
This commit is contained in:
@@ -455,6 +455,8 @@ class Workspace extends Model
|
||||
@itemOpened(item)
|
||||
pane.activateItem(item)
|
||||
pane.activate() if activatePane
|
||||
if options.initialLine? or options.initialColumn?
|
||||
item.setCursorBufferPosition([options.initialLine, options.initialColumn])
|
||||
index = pane.getActiveItemIndex()
|
||||
@emit "uri-opened"
|
||||
@emitter.emit 'did-open', {uri, pane, item, index}
|
||||
|
||||
Reference in New Issue
Block a user