   #
   # 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}.

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

  # This method can be overridden by subclasses but `super` should always
  # be called.
  initialize: ->
    @editorView.getEditor().getBuffer().on 'changed', => @schedulePopulateList()
    @editorView.hiddenInput.on 'focusout', => @cancel() unless @cancelling

    @on 'core:move-up', =>
      @selectPreviousItemView()
