From acc9c2421b6a1bf4e3be9898115012c21a274b12 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Tue, 16 Jul 2024 21:00:00 -0600 Subject: [PATCH] Vim rename via menu too? (#14617) Follow up to #14320 Release Notes: - N/A --- crates/editor/src/editor.rs | 5 +++++ 1 file changed, 5 insertions(+) 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);