Skip to content

Commit 0df3ed5

Browse files
committed
Fix redox print_prompt
1 parent 2ec6eb7 commit 0df3ed5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ fn run_shell(vm: &VirtualMachine, scope: Scope) -> PyResult<()> {
587587
crate_version!()
588588
);
589589

590-
fn print_prompt() {
590+
fn print_prompt(vm: &VirtualMachine) {
591591
let prompt = get_prompt(vm, "ps1");
592592
let prompt = match prompt {
593593
Some(ref s) => s.as_str(),
@@ -599,7 +599,7 @@ fn run_shell(vm: &VirtualMachine, scope: Scope) -> PyResult<()> {
599599

600600
let stdin = io::stdin();
601601

602-
print_prompt();
602+
print_prompt(vm);
603603
for line in stdin.lock().lines() {
604604
let mut line = line.expect("line failed");
605605
line.push_str("\n");
@@ -608,7 +608,7 @@ fn run_shell(vm: &VirtualMachine, scope: Scope) -> PyResult<()> {
608608
ShellExecResult::Continue => println!("Unexpected EOF"),
609609
ShellExecResult::PyErr(exc) => print_exception(vm, &exc),
610610
}
611-
print_prompt();
611+
print_prompt(vm);
612612
}
613613

614614
Ok(())

0 commit comments

Comments
 (0)