     @subscribe @findModel, 'updated', @markersUpdated
     @subscribe @findModel, 'find-error', @findError
 
+    atom.workspaceView.on 'pane-container:active-pane-item-changed', =>
+      @findResultsView.attach() if @isAttached()
+
     # FIXME: remove when the old editor is out.
     atom.workspaceView.on 'selection:changed', @setCurrentMarkerFromSelection
 

    else
      @clearMessage()

    @findResultsView.attach() if @isVisible()
    if @findModel.pattern isnt @findEditor.getText()
      @findEditor.setText(@findModel.pattern)


    atom.workspaceView.prependToBottom(this)

  detach: =>
    return unless @isAttached()

    @hideAllTooltips()
    @findResultsView.detach()
