     delete @renameInfo
 
   onDone: (e) =>
-    # unless atom.workspaceView.getActivePaneItem() is @editor
-    unless @isActive
+    unless @isActive and @isThisEditorActive()
       e.abortKeyBinding()
       return
 

  ###
  Utility
  ###

  # Range to pixel based start and end range for each row.
  rangeToRows: ({ start, end }) ->

  ###

  onRename: (e) =>
    unless @isActive and @isThisEditorActive()
      e.abortKeyBinding()
      return

    cursor = @editor.cursors[0]
    range = cursor.getCurrentWordBufferRange includeNonWordCharacters: false
    refRanges = @ripper.find range
    if refRanges.length is 0
      e.abortKeyBinding()
      return

    console.log 'onRename', @editor.getTitle()

    # Save cursor info.
    # Select all references.
