diff --git a/crates/go_to_line/src/go_to_line.rs b/crates/go_to_line/src/go_to_line.rs index 301f37a9fbc5713114ce45121a917c0f17f8121c..53669ea2c62151b5be363051068d0630d766a76c 100644 --- a/crates/go_to_line/src/go_to_line.rs +++ b/crates/go_to_line/src/go_to_line.rs @@ -224,6 +224,4 @@ impl View for GoToLine { fn on_focus(&mut self, cx: &mut ViewContext) { cx.focus(&self.line_editor); } - - fn on_blur(&mut self, _: &mut ViewContext) {} } diff --git a/crates/outline/src/outline.rs b/crates/outline/src/outline.rs index 88c380801172a9b4147d10e632c8b5e3d5355152..1ddd3321e3aca3f783a0f1b386726eba93eff538 100644 --- a/crates/outline/src/outline.rs +++ b/crates/outline/src/outline.rs @@ -258,6 +258,7 @@ impl OutlineView { cx: &mut ViewContext, ) { match event { + editor::Event::Blurred => cx.emit(Event::Dismissed), editor::Event::Edited => self.update_matches(cx), _ => {} }