mirror of
https://github.com/nushell/nushell.git
synced 2024-12-16 20:21:09 +01:00
Merge pull request #31 from jntrnr/make_prompt_more_resilient
Make reedline prompt more resilient
This commit is contained in:
commit
ed6abced5b
@ -131,7 +131,10 @@ fn main() -> std::io::Result<()> {
|
|||||||
line_editor.clear_screen()?;
|
line_editor.clear_screen()?;
|
||||||
}
|
}
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
println!("Error: {:?}", err);
|
let message = err.to_string();
|
||||||
|
if !message.contains("duration") {
|
||||||
|
println!("Error: {:?}", err);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
current_line += 1;
|
current_line += 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user