         selectionEnd = range.end.add([0, -1])
 
       text = selection.getText()
-      selection.insertText(text.substring(1,text.length - 1))
+      selection.insertText(text.substring(1, text.length - 1))
       selection.setBufferRange([selectionStart, selectionEnd], options)
+      bracketsRemoved = true
+    bracketsRemoved
 
   wrapSelectionInBrackets: (editor, bracket) ->
-
     pair = @pairedCharacters[bracket]
     selectionWrapped = false
     editor.mutateSelectedText (selection) ->

          editor.delete()
        false

  removeBrackets: (e) ->

    editor = atom.workspace.activePaneItem
    editor.mutateSelectedText (selection) =>

      if selection.isEmpty()
        e.abortKeyBinding()
        return

      unless @selectionIsWrappedByMatchingBrackets(selection)
        e.abortKeyBinding()
        return

      range = selection.getBufferRange()

    atom.project.eachEditor (editor) =>
      @subscribeToEditor(editor)

    atom.workspaceView.command "bracket-matcher:remove-brackets", (event) =>
      event.abortKeyBinding() unless @removeBrackets()

  subscribeToEditor: (editor) ->
    @bracketMarkers = []
