 
   done: ->
     # When this editor is not active, returns false to abort keyboard binding.
-    return false unless @isActive()
+    return false unless @isActive() and @renamingCursor? and @renamingMarkers?
 
     # Stop renaming life cycle.
     @editorView.off 'cursor:moved', @abort

    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()



  abort: =>
    # When this editor is not active, do nothing.
    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.
