diff --git a/lib/main-v4.coffee b/lib/main-v4.coffee index 0e7f69f7..0f366a04 100644 --- a/lib/main-v4.coffee +++ b/lib/main-v4.coffee @@ -32,7 +32,7 @@ class V4Main observeMinimaps: (iterator) -> return unless iterator? - iterator({view: minimap}) for id,minimap of @editorsMinimaps + iterator(minimap) for id,minimap of @editorsMinimaps createdCallback = (minimap) -> iterator(minimap) disposable = @onDidCreateMinimap(createdCallback) disposable.off = -> @@ -50,6 +50,6 @@ class V4Main editorElement = atom.views.getView(textEditor) minimapElement = atom.views.getView(minimap) - @emitter.emit('did-create-minimap') - + @emitter.emit('did-create-minimap', minimap) + minimapElement.attach() diff --git a/lib/main.coffee b/lib/main.coffee index 3e21739f..342c4b6c 100644 --- a/lib/main.coffee +++ b/lib/main.coffee @@ -83,7 +83,7 @@ class Main description: "The opacity used to render the line's text in the minimap." v4Preview: type: 'boolean' - default: false + default: true description: "Require Atom restart. Plugins will be disabled." # Internal: The activation state of the minimap package.