       atom.workspaceView.focus()
 
   cancelled: ->
-    @editorView.getEditor().setText('')
-    @editorView.updateDisplay()
+    @filterEditorView.getEditor().setText('')
+    @filterEditorView.updateDisplay()
 
   # Public: Cancel and close the select list dialog.
   cancel: ->
     @list.empty()
     @cancelling = true
-    editorViewFocused = @editorView.isFocused
+    filterEditorViewFocused = @filterEditorView.isFocused
     @cancelled()
     @detach()
-    @restoreFocus() if editorViewFocused
+    @restoreFocus() if filterEditorViewFocused
     @cancelling = false
     clearTimeout(@scheduleTimeout)

{$, View} = require './space-pen-extensions'
EditorView = require './editor-view'
fuzzyFilter = require('fuzzaldrin').filter

# Public: Provides a view that renders a list of items with an editor that

  #
  # Returns a {String} to use when fuzzy filtering the elements to display.
  getFilterQuery: ->
    @filterEditorView.getEditor().getText()

  # Public: Populate the list view with the model items previously set by
  # calling {.setItems}.
