Change it to an observe callback
MODIFY
lib/find.coffee
lib/find.coffee
@@ -36,8 +36,8 @@ module.exports =
if atom.workspace.isTextEditor(paneItem)
@findModel.setEditor(paneItem)
- else if paneItem?.onDidChangeEmbeddedTextEditor?
- @currentItemSub = paneItem.onDidChangeEmbeddedTextEditor (editor) =>
+ else if paneItem?.observeEmbeddedTextEditor?
+ @currentItemSub = paneItem.observeEmbeddedTextEditor (editor) =>
if atom.workspace.getCenter().getActivePaneItem() is paneItem
@findModel.setEditor(editor)
@subscriptions.add @currentItemSub

MODIFY
spec/item/deferred-editor-item.js
spec/item/deferred-editor-item.js
@@ -40,7 +40,10 @@ class DeferredEditorItem {
return etch.update(this)
}
- onDidChangeEmbeddedTextEditor(cb) {
+ observeEmbeddedTextEditor(cb) {
+ if (this.editorShown) {
+ cb(this.refs.theEditor)
+ }
return this.emitter.on('did-change-embedded-text-editor', cb)
}

Change it to an observe callback