Revert "Improve completions for exact matches (Issue #14794)" (#15457)

Reverts nushell/nushell#15387

As pointed out by @132ikl in
https://github.com/nushell/nushell/pull/15387#issuecomment-2764852850,
#15387 had the unintended side effect of not showing all suggestions in
certain cases when that wasn't desired.
This commit is contained in:
Yash Thakur
2025-03-30 23:41:42 -04:00
committed by GitHub
parent 7be90c2644
commit 9aba96604b
2 changed files with 1 additions and 11 deletions

View File

@ -98,7 +98,7 @@ fn complete_rec(
}
// For https://github.com/nushell/nushell/issues/13204
if options.match_algorithm == MatchAlgorithm::Prefix {
if isdir && options.match_algorithm == MatchAlgorithm::Prefix {
let exact_match = if options.case_sensitive {
entry_name.eq(base)
} else {