       'hard-wrap:reflow-selection': => @reflowSelection()
 
   deactivate: ->
-    @modalPanel.destroy()
     @subscriptions.dispose()
 
   getMaxLineLength: (range, textEditor) ->

    return wrapped

  reflowSelection: ->
    console.log 'AtomHardWrap was executed!'

    editor = atom.workspace.getActiveTextEditor()
    for range in editor.getSelectedBufferRanges()
      # selection.selectToBeginningOfLine()

{max} = require 'underscore-plus'

module.exports = AtomHardWrap =
  subscriptions: null

  activate: (state) ->
