mirror of
https://github.com/nushell/nushell.git
synced 2025-03-29 17:16:49 +01:00
Made completion matching case-insensitive by default for windows (#3420)
This commit is contained in:
parent
57e2fec497
commit
874ecd6c88
@ -44,6 +44,10 @@ impl NuCompleter {
|
|||||||
let matcher = matcher.as_str();
|
let matcher = matcher.as_str();
|
||||||
let matcher: &dyn Matcher = match matcher {
|
let matcher: &dyn Matcher = match matcher {
|
||||||
"case-insensitive" => &matchers::case_insensitive::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,
|
_ => &matchers::case_sensitive::Matcher,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user