From bd93efb5e82ce1ebfeca080aaeb8e39b2fbaa2a5 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Sun, 6 Nov 2011 22:28:03 -0800 Subject: [PATCH] any path except a directory can open in a window? all the path detection should probably go in the same place --- src/window.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window.coffee b/src/window.coffee index d6bcda937..e0af6f9f1 100644 --- a/src/window.coffee +++ b/src/window.coffee @@ -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) ->