fix(shell/lean.cpp): use temp ios
This commit is contained in:
parent
33f18b9454
commit
ef60e6abd2
1 changed files with 2 additions and 1 deletions
|
@ -269,7 +269,8 @@ public:
|
||||||
bool ok = true;
|
bool ok = true;
|
||||||
try {
|
try {
|
||||||
environment temp_env(env);
|
environment temp_env(env);
|
||||||
if (!parse_commands(temp_env, ios, input_filename.c_str(), false, num_threads)) {
|
io_state temp_ios(ios);
|
||||||
|
if (!parse_commands(temp_env, temp_ios, input_filename.c_str(), false, num_threads)) {
|
||||||
ok = false;
|
ok = false;
|
||||||
}
|
}
|
||||||
} catch (lean::exception & ex) {
|
} catch (lean::exception & ex) {
|
||||||
|
|
Loading…
Reference in a new issue