mirror of
https://github.com/atom/atom.git
synced 2026-01-25 23:08:18 -05:00
Omit untitled editors (at least for now)
This commit is contained in:
@@ -331,7 +331,7 @@ class LaunchScenario {
|
||||
|
||||
getOpenEditors (window) {
|
||||
return this.evalInWebContents(window.browserWindow.webContents, reply => {
|
||||
reply(atom.workspace.getTextEditors().map(editor => editor.getPath()))
|
||||
reply(atom.workspace.getTextEditors().map(editor => editor.getPath()).filter(Boolean))
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user