mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
The initialLine parameter is sent as an option
This commit is contained in:
@@ -25,7 +25,7 @@ class WindowEventHandler
|
||||
|
||||
@subscribe $(window), 'window:open-path', (event, {pathToOpen, initialLine}) ->
|
||||
unless fsUtils.isDirectorySync(pathToOpen)
|
||||
atom.rootView?.openAsync(pathToOpen, initialLine)
|
||||
atom.rootView?.openAsync(pathToOpen, {initialLine})
|
||||
|
||||
@subscribe $(window), 'beforeunload', =>
|
||||
confirmed = atom.rootView?.confirmClose()
|
||||
|
||||
Reference in New Issue
Block a user