 
   abort: =>
     # When this editor is not active, do nothing.
-    return unless @isActive()
+    return unless @isActive() and @renamingCursor? and @renamingMarkers?
 
     # Verify all cursors are in renaming markers.
     # When the cursor is out of marker at least one, abort renaming.

    text = @editor.buffer.getText()
    if text isnt @cachedText
      @cachedText = text
      @ripper.parse text, (errors) => #TODO deprecate verification of array in v0.4
        @onParseEnd unless errors?
          null
        else unless Array.isArray errors
          [errors]
        else
          errors
    else
      @onParseEnd()



  createErrors: (errors) =>
    @errorMarkers = for { location, range, message } in errors
      if location? #TODO deprecate verification of the location in v0.5
        range = locationDataToRange location

      marker = @editor.markBufferRange range
