diff --git a/crates/nu-cli/src/cli.rs b/crates/nu-cli/src/cli.rs index bbe0518f3..893293d8d 100644 --- a/crates/nu-cli/src/cli.rs +++ b/crates/nu-cli/src/cli.rs @@ -528,7 +528,7 @@ pub async fn cli(mut context: EvaluationContext) -> Result<(), Box> { LineResult::Success(line) => { rl.add_history_entry(&line); let _ = rl.save_history(&history_path); - context.maybe_print_errors(Text::from(line)); + context.maybe_print_errors(Text::from(session_text.clone())); } LineResult::ClearHistory => {