diff --git a/crates/terminal_view/src/terminal_view.rs b/crates/terminal_view/src/terminal_view.rs index a724d674da..27e5dd2481 100644 --- a/crates/terminal_view/src/terminal_view.rs +++ b/crates/terminal_view/src/terminal_view.rs @@ -211,7 +211,8 @@ impl TerminalView { cx: &mut ViewContext, ) { let context_menu = ContextMenu::build(cx, |menu, _| { - menu.action("New Terminal", Box::new(NewTerminal)) + menu.context(self.focus_handle.clone()) + .action("New Terminal", Box::new(NewTerminal)) .separator() .action("Copy", Box::new(Copy)) .action("Paste", Box::new(Paste))