mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Don't reuse window when opening a subfolder
Windows will only be reused when they match the initial path or are paths to a new or existing file. Closes #934
This commit is contained in:
@@ -55,6 +55,8 @@ class AtomWindow
|
||||
false
|
||||
else if pathToCheck is initialPath
|
||||
true
|
||||
else if fs.statSyncNoException(pathToCheck).isDirectory()
|
||||
false
|
||||
else if pathToCheck.indexOf(path.join(initialPath, path.sep)) is 0
|
||||
true
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user