Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PROMPT_STRING env variable #3918

Merged
merged 2 commits into from
Aug 14, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
cargo clippy
  • Loading branch information
elferherrera committed Aug 14, 2021
commit 6ea515d8634957674681437584746e49038dd196
4 changes: 2 additions & 2 deletions crates/nu-cli/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ fn evaluate_prompt_string(prompt_line: &str, context: &EvaluationContext, cwd: &
} else {
let run_result = run_block(
&prompt_block,
&context,
context,
InputStream::empty(),
ExternalRedirection::Stdout,
);
Expand All @@ -120,7 +120,7 @@ fn evaluate_prompt_string(prompt_line: &str, context: &EvaluationContext, cwd: &
Ok(result) => match result.collect_string(Tag::unknown()) {
Ok(string_result) => {
let errors = context.get_errors();
maybe_print_errors(&context, Text::from(prompt_line));
maybe_print_errors(context, Text::from(prompt_line));
context.clear_errors();

if !errors.is_empty() {
Expand Down