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

      @preview() if @isAutoPreview()

  syncToProviderEditor: ->
    # Detect item
    # - cursor position is equal or greather than that item.
    cursorPosition = @providerEditor.getCursorBufferPosition()

  @uiByNarrowEditor: new Map()
  autoPreview: false
  preventAutoPreview: false
  preventSyncToProviderEditor: false
  ignoreChangeOnEditor: false
  destroyed: false
  items: []
