mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Opt in to editor view only when core.useNewEditor is true
This commit is contained in:
@@ -221,7 +221,10 @@ class Editor extends Model
|
||||
@subscribe @displayBuffer, 'soft-wrap-changed', (args...) => @emit 'soft-wrap-changed', args...
|
||||
|
||||
getViewClass: ->
|
||||
require './react-editor-view'
|
||||
if atom.config.get('core.useNewEditor')
|
||||
require './react-editor-view'
|
||||
else
|
||||
require './editor-view'
|
||||
|
||||
destroyed: ->
|
||||
@unsubscribe()
|
||||
|
||||
Reference in New Issue
Block a user