Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Score matches case-sensitively when query contains an uppercase char

Antonio Scandurra8db131a3a1bb
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index db357f2b839..6df0456d2fc 100644
--- a/crates/editor/src/editor.rs
+++ b/crates/editor/src/editor.rs
@@ -812,7 +812,7 @@ impl CompletionsMenu {
fuzzy::match_strings(
&self.match_candidates,
query,
- false,
+ query.chars().any(|c| c.is_uppercase()),
100,
&Default::default(),
executor,