     @subscribe @editor, 'scroll-top-changed.minimap', @updateScroll
     #@subscribe @editor, 'scroll-left-changed.minimap', @updateScroll
 
+  # See /Applications/Atom.app/Contents/Resources/app/src/pane-view.js#349
+  # pane-view's private api
+  # `paneView.activeView` and `paneView.activeItem`
   getEditorView: -> @paneView.viewForItem(@activeItem)
 
   getEditorViewClientRect: -> @scrollView[0].getBoundingClientRect()
 
   getScrollViewClientRect: -> @scrollViewLines[0].getBoundingClientRect()
+
+  # See https://atom.io/docs/api/v0.83.0/api/classes/Pane.html#getActiveEditor-instance
+  # Returns an Editor if the pane item is an Editor, or null otherwise.
+  getEditor: -> @paneView.model.getActiveEditor()
 
   setMinimapEditorView: ->
     # update minimap-editor


  onActiveItemChanged: (item) =>
    # Fix called twice when opening minimap!
    return if @activeItem == item
    @activeItem = item

    if @activeTabSupportMinimap()


  storeActiveEditor: ->
    @editorView = @getEditorView()
    @editor = @editorView.getEditor()

    @unsubscribeFromEditor()

    @scrollView = @editorView.scrollView
    @scrollViewLines = @scrollView.find('.lines')

