   # 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
+    @filterEditorView.getEditor().getBuffer().on 'changed', => @schedulePopulateList()
+    @filterEditorView.hiddenInput.on 'focusout', => @cancel() unless @cancelling
 
     @on 'core:move-up', =>
       @selectPreviousItemView()

      atom.workspaceView.focus()

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

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

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