diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index 6c6035d4e1..99a7043156 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -9491,6 +9491,11 @@ impl Editor { } editor }); + cx.subscribe(&rename_editor, |_, _, e, cx| match e { + EditorEvent::Focused => cx.emit(EditorEvent::FocusedIn), + _ => {} + }) + .detach(); let write_highlights = this.clear_background_highlights::(cx);