Parameterize config on editor instead of using global atom.config

This commit is contained in:
Nathan Sobo
2015-10-02 21:38:02 -06:00
parent 3d118b8a33
commit 51abab930d
8 changed files with 39 additions and 30 deletions

View File

@@ -458,7 +458,7 @@ class Workspace extends Model
@buildTextEditor(_.extend({buffer, largeFileMode}, options))
buildTextEditor: (params) ->
new TextEditor(params)
new TextEditor(_.extend({@config}, params))
# Public: Asynchronously reopens the last-closed item's URI if it hasn't already been
# reopened.