Made completion matching case-insensitive by default for windows (#3420)

This commit is contained in:
Sympatron GmbH 2021-05-12 23:38:43 +00:00 committed by GitHub
parent 57e2fec497
commit 874ecd6c88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,6 +44,10 @@ impl NuCompleter {
let matcher = matcher.as_str();
let matcher: &dyn Matcher = match matcher {
"case-insensitive" => &matchers::case_insensitive::Matcher,
"case-sensitive" => &matchers::case_sensitive::Matcher,
#[cfg(target_os = "windows")]
_ => &matchers::case_insensitive::Matcher,
#[cfg(not(target_os = "windows"))]
_ => &matchers::case_sensitive::Matcher,
};