any path except a directory can open in a window?

all the path detection should probably go in the same place
This commit is contained in:
Chris Wanstrath
2011-11-06 22:28:03 -08:00
parent 34ce4229c4
commit bd93efb5e8

View File

@@ -83,7 +83,7 @@ windowAdditions =
open: (path) ->
atomController.window.makeKeyAndOrderFront atomController
if fs.isFile path
if not fs.isDirectory path
Event.trigger 'window:open', path
close: (path) ->