The initialLine parameter is sent as an option

This commit is contained in:
probablycorey
2013-10-10 09:49:06 -07:00
parent 0c811ec703
commit 23620e158b

View File

@@ -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()