From 101add8da3ab4c04d06e387a4a0054bf99ada0be Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Wed, 2 Feb 2022 19:12:36 +0100 Subject: [PATCH] Hide completions when using the mouse Co-Authored-By: Nathan Sobo Co-Authored-By: Max Brunsfeld --- crates/editor/src/editor.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index 49612a59f9..9db6fa0a0c 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -867,6 +867,8 @@ impl Editor { } fn select(&mut self, Select(phase): &Select, cx: &mut ViewContext) { + self.hide_completions(cx); + match phase { SelectPhase::Begin { position,