summaryrefslogtreecommitdiffstats
path: root/src/shell/history/mod.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-01-08 20:50:25 -0500
committerJesse Luehrs <doy@tozt.net>2022-01-08 20:50:25 -0500
commit6286c1284f62b9ea2d7144daae7ff9abf7d474c6 (patch)
treeac13f03d89be0c5c2223e7f385cf5df9fa705db9 /src/shell/history/mod.rs
parent9945a08434dc51d480d1e9303ee2fa7b5e823d7d (diff)
downloadnbsh-6286c1284f62b9ea2d7144daae7ff9abf7d474c6.tar.gz
nbsh-6286c1284f62b9ea2d7144daae7ff9abf7d474c6.zip
we also don't need to keep reading if we get an Exit event
Diffstat (limited to 'src/shell/history/mod.rs')
-rw-r--r--src/shell/history/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shell/history/mod.rs b/src/shell/history/mod.rs
index b7b33b8..b280940 100644
--- a/src/shell/history/mod.rs
+++ b/src/shell/history/mod.rs
@@ -544,6 +544,8 @@ async fn run_pipeline(
}
crate::pipeline::Event::Exit(new_env) => {
*env = new_env;
+ read_done = true;
+ continue;
}
}
new_read();