Open an untitled buffer when pathToOpen is null or undefined

This commit is contained in:
Ash Wilson 2019-01-17 08:15:06 -05:00
parent c3fe8da945
commit b9bd3713ee
No known key found for this signature in database
GPG Key ID: 81B1DDB704F69D2A

View File

@ -1376,6 +1376,8 @@ or use Pane::saveItemAs for programmatic saving.`)
for (const {location, stats} of locationStats) {
const {pathToOpen} = location
if (!pathToOpen) {
// Untitled buffer
fileLocationsToOpen.push(location)
continue
}