           view.destroy()
           delete @minimapViews[editorId]
           @emit('minimap-view:destroyed', {view})
+
+          paneView.addClass('with-minimap') if paneView.activeView instanceof EditorView

    # the callback.
    @eachEditorViewSubscription = atom.workspaceView.eachEditorView (editorView) =>
      editorId = editorView.editor.id
      view = new MinimapView(editorView)

      @minimapViews[editorId] = view

{EditorView} = require 'atom'
Mixin = require 'mixto'
MinimapView = require '../minimap-view'

