 
   # Return success or fail
   syncToEditor: (editor) ->
-    return false if @preventSyncToEditor
+    return false if @inPreview
 
     point = editor.getCursorBufferPosition()
     if @provider.boundToSingleFile

      moveAndScroll()

  preview: ->
    @preventSyncToEditor = true
    item = @items.getSelectedItem()
    unless item?
      @preventSyncToEditor = false
      @highlighter.clearLineMarker()
      return

    @provider.openFileForItem(item).then (editor) =>
      editor.scrollToBufferPosition(item.point, center: true)
      @preventSyncToEditor = false
      @emitDidPreview({editor, item})

  confirm: ({keepOpen, flash}={}) ->

  autoPreview: null
  autoPreviewOnQueryChange: null

  inPreview: false
  ignoreChange: false
  ignoreCursorMove: false
  destroyed: false
