mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2025-01-03 20:33:33 +03:00
Remove isInitialEmptyEditor
This commit is contained in:
parent
1cdfac008b
commit
5f7015f303
@ -161,7 +161,7 @@ describe "the `atom` global", ->
|
||||
it "opens an empty buffer", ->
|
||||
spyOn(atom.workspace, 'open')
|
||||
atom.openInitialEmptyEditorIfNecessary()
|
||||
expect(atom.workspace.open).toHaveBeenCalledWith(null, {isInitialEmptyEditor: true})
|
||||
expect(atom.workspace.open).toHaveBeenCalledWith(null)
|
||||
|
||||
describe "when there is already a buffer open", ->
|
||||
beforeEach ->
|
||||
|
@ -633,7 +633,7 @@ class Atom extends Model
|
||||
|
||||
openInitialEmptyEditorIfNecessary: ->
|
||||
if @getLoadSettings().initialPaths?.length is 0 and @workspace.getPaneItems().length is 0
|
||||
@workspace.open(null, {isInitialEmptyEditor: true})
|
||||
@workspace.open(null)
|
||||
|
||||
###
|
||||
Section: Messaging the User
|
||||
|
Loading…
Reference in New Issue
Block a user