mirror of
https://github.com/nushell/nushell.git
synced 2025-02-21 21:11:49 +01:00
Fix up subcommand alias colours
This commit is contained in:
parent
2f43cc353b
commit
dda6554990
@ -889,7 +889,7 @@ impl<'a> ParserWorkingSet<'a> {
|
||||
|
||||
if expand_aliases {
|
||||
if let Some(expansion) = self.find_alias(&new_name) {
|
||||
let orig_span = spans[pos];
|
||||
let orig_span = span(&spans[cmd_start..pos + 1]);
|
||||
//let mut spans = spans.to_vec();
|
||||
let mut new_spans: Vec<Span> = vec![];
|
||||
new_spans.extend(&spans[0..cmd_start]);
|
||||
|
Loading…
Reference in New Issue
Block a user