mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 09:55:42 +02:00
Make it-expansion work when in a list (#1903)
This commit is contained in:
@ -567,6 +567,14 @@ impl SpannedExpression {
|
||||
}
|
||||
Expression::Variable(Variable::It(_)) => true,
|
||||
Expression::Path(path) => path.head.has_shallow_it_usage(),
|
||||
Expression::List(list) => {
|
||||
for l in list {
|
||||
if l.has_shallow_it_usage() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
false
|
||||
}
|
||||
Expression::Invocation(block) => {
|
||||
for commands in block.block.iter() {
|
||||
for command in commands.list.iter() {
|
||||
|
Reference in New Issue
Block a user