-{Range, Disposable, CompositeDisposable} = require 'atom'
+{Disposable} = require 'atom'
 _ = require 'underscore-plus'
 
 getAdjacentPaneForPane = (pane) ->

    Element.prototype = options.prototype if options.prototype?
  Element

# Return function to restore editor's scrollTop and fold state.
saveEditorState = (editor) ->
  editorElement = editor.element
  scrollTop = editorElement.getScrollTop()

  foldStartRows = editor.displayLayer.findFoldMarkers({}).map (m) -> m.getStartPosition().row
  ->
    for row in foldStartRows.reverse() when not editor.isFoldedAtBufferRow(row)
      editor.foldBufferRow(row)


module.exports = {
  getAdjacentPaneForPane
  openItemInAdjacentPaneForPane
  decorateRange
  smartScrollToBufferPosition
