Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Avoid leaving selected item index past end of matches list
Juliaf5af5f7334a7
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rsindex 3143b19629e..9b276f002c0 100644--- a/crates/editor/src/editor.rs+++ b/crates/editor/src/editor.rs@@ -1332,6 +1332,7 @@ impl CompletionsMenu {}self.matches = matches.into();+ self.selected_item = 0;}}