From 8db131a3a1bb33ccdf7ab22d437bf8673a9ba400 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Wed, 15 Feb 2023 13:12:45 +0100 Subject: [PATCH] Score matches case-sensitively when query contains an uppercase char --- crates/editor/src/editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index db357f2b83..6df0456d2f 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,