mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 22:50:14 +02:00
Fix hiding of import patterns with globs (#487)
* Fix glob hiding * Remove docs comment
This commit is contained in:
@ -59,9 +59,7 @@ impl Command for Hide {
|
||||
overlay.env_vars_with_head(&import_pattern.head.name)
|
||||
} else {
|
||||
match &import_pattern.members[0] {
|
||||
ImportPatternMember::Glob { .. } => {
|
||||
overlay.env_vars_with_head(&import_pattern.head.name)
|
||||
}
|
||||
ImportPatternMember::Glob { .. } => overlay.env_vars(),
|
||||
ImportPatternMember::Name { name, span } => {
|
||||
let mut output = vec![];
|
||||
|
||||
|
@ -866,9 +866,7 @@ pub fn parse_hide(
|
||||
}
|
||||
} else {
|
||||
match &import_pattern.members[0] {
|
||||
ImportPatternMember::Glob { .. } => {
|
||||
overlay.decls_with_head(&import_pattern.head.name)
|
||||
}
|
||||
ImportPatternMember::Glob { .. } => overlay.decls(),
|
||||
ImportPatternMember::Name { name, span } => {
|
||||
let mut output = vec![];
|
||||
|
||||
|
Reference in New Issue
Block a user