             return
           }
 
+          if self?.isForwardSearchAutomatically == true {
+            self?.ignoreNextForwardSearch = true
+          }
+
           self?.flow.publish(
             event: PreviewRendererAction.reverseSearch(to: Position(row: lineBegin, column: columnBegin))
           )

    return extensions.contains(fileExtension)
  }

  fileprivate func scrollSubscription(source: Observable<Any>) -> Disposable {
    return source
      .observeOn(self.scheduler)
      .throttle(0.5, latest: true, scheduler: self.scheduler)
      .filter { $0 is MainWindowComponent.ScrollAction }
      .subscribe(onNext: { [unowned self] action in
        guard self.isForwardSearchAutomatically else {
          return
        }

        self.forwardSearchAction(nil)
      })
  }

  fileprivate func subscription(source: Observable<Any>) -> Disposable {
    return source
      .observeOn(self.scheduler)

  fileprivate let refreshOnWriteMenuItem = NSMenuItem(title: "Refresh on Write", action: nil, keyEquivalent: "")

  fileprivate let webview: WKWebView

  fileprivate var ignoreNextForwardSearch = false;

  fileprivate var currentUrl: URL?
  fileprivate var currentPreviewPosition = Position(row: 0, column: 0)
