   start: (@provider) ->
     if @provider.constructor.name is 'Search'
       includeHeaderRules = true
-    @grammar = new NarrowGrammar(@editor, {@initialKeyword, includeHeaderRules})
+    @grammar = new NarrowGrammar(@narrowEditor, {@initialKeyword, includeHeaderRules})
     @grammar.activate()
 
     activePane = atom.workspace.getActivePane()
     direction = settings.get('directionToOpen')
     if direction is 'here'
-      @pane = activePane.activateItem(@editor)
+      @pane = activePane.activateItem(@narrowEditor)
       @autoPreview = false
     else
-      @pane = openItemInAdjacentPaneForPane(activePane, @editor, direction)
+      @pane = openItemInAdjacentPaneForPane(activePane, @narrowEditor, direction)
       defaultAutoPreviewConfigName = @provider.getName() + "DefaultAutoPreview"
       @autoPreview = settings.get(defaultAutoPreviewConfigName) ? false
 
     @getItems().then (items) =>
       @setItems(items)
       if @initialInput
-        @editor.insertText(@initialInput)
+        @narrowEditor.insertText(@initialInput)
 
   getNarrowQuery: ->
-    @editor.lineTextForBufferRow(0)
+    @narrowEditor.lineTextForBufferRow(0)
 
   refresh: ->
     query = @getNarrowQuery()


  setGutterMarkerToRow: (row) ->
    @gutterMarker?.destroy()
    @gutterMarker = @editor.markBufferPosition([row, 0])
    @gutter.decorateMarker @gutterMarker,
      class: "narrow-ui-row"
      item: @getGutterItem()

    @locked = false

  observeCursorPositionChange: ->
    @narrowEditor.onDidChangeCursorPosition (event) =>
      {oldBufferPosition, newBufferPosition, textChanged, cursor} = event
      return if @isLocked() or
        textChanged or
