This commit is contained in:
Jonathan Turner
2020-06-29 09:06:05 +12:00
committed by GitHub
parent 3f170c7fb8
commit bcddeb3c1f
5 changed files with 68 additions and 37 deletions

View File

@@ -72,7 +72,7 @@ async fn do_(
},
input,
) = raw_args.process(&registry).await?;
block.set_is_last(!is_last);
block.set_is_last(is_last);
let result = run_block(
&block,

View File

@@ -41,7 +41,7 @@ impl WholeStreamCommand for AliasCommand {
let call_info = args.call_info.clone();
let registry = registry.clone();
let mut block = self.block.clone();
block.set_is_last(!call_info.args.is_last);
block.set_is_last(call_info.args.is_last);
let alias_command = self.clone();
let mut context = Context::from_args(&args, &registry);