     editor.decorateMarker(@rowMarker, type: 'line', class: 'narrow-result')
 
   preview: ->
-    @preventSyncToProviderEditor = true
+    @preventSyncToEditor = true
     @confirm(keepOpen: true).then ({editor, point}) =>
       if editor.isAlive()
         @setRowMarker(editor, point)
         @focus()
-        @preventSyncToProviderEditor = false
+        @preventSyncToEditor = false
 
   isNormalItem: (item) ->
     item? and not item.skip

  # -------------------------
  autoPreview: false
  preventAutoPreview: false
  preventSyncToProviderEditor: false
  ignoreChangeOnEditor: false
  destroyed: false
  items: []


      @preview() if @isAutoPreview()

  syncToEditor: ->
    return if @preventSyncToEditor
    # Detect item
    # - cursor position is equal or greather than that item.
    cursorPosition = @syncingEditor.getCursorBufferPosition()
    foundItem = null
    for item in @items by -1 when item.point?.isLessThanOrEqual(cursorPosition)
      foundItem = item
