mirror of
https://github.com/nushell/nushell.git
synced 2025-06-20 09:58:15 +02:00
Add comment
This commit is contained in:
parent
df798b657c
commit
c506479c5a
@ -329,6 +329,9 @@ fn flatten_expression_into(
|
|||||||
if let Expr::String(..) | Expr::GlobPattern(..) = &head.expr {
|
if let Expr::String(..) | Expr::GlobPattern(..) = &head.expr {
|
||||||
output.push((
|
output.push((
|
||||||
head.span,
|
head.span,
|
||||||
|
// If this external call is through an alias, then head.span points to the
|
||||||
|
// name of the alias, but we also need the name of the aliased command. We
|
||||||
|
// recover this from the span referenced by head.span_id.
|
||||||
FlatShape::External(working_set.get_span(head.span_id)),
|
FlatShape::External(working_set.get_span(head.span_id)),
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user