   #
   # Returns a {String} to use when fuzzy filtering the elements to display.
   getFilterQuery: ->
-    @miniEditor.getEditor().getText()
+    @editorView.getEditor().getText()
 
   # Public: Build the DOM elements using the array from the last call to
   # {.setItems}.

      atom.workspaceView.focus()

  cancelled: ->
    @miniEditor.getEditor().setText('')
    @miniEditor.updateDisplay()

  # Public: Cancel and close the select list dialog.
  cancel: ->
    @list.empty()
    @cancelling = true
    miniEditorFocused = @miniEditor.isFocused
    @cancelled()
    @detach()
    @restoreFocus() if miniEditorFocused
    @cancelling = false
    clearTimeout(@scheduleTimeout)

class SelectListView extends View
  @content: ->
    @div class: @viewClass(), =>
      @subview 'editorView', new EditorView(mini: true)
      @div class: 'error-message', outlet: 'error'
      @div class: 'loading', outlet: 'loadingArea', =>
        @span class: 'loading-message', outlet: 'loading'
