diff options
author | Jesse Luehrs <doy@tozt.net> | 2022-01-08 20:50:25 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2022-01-08 20:50:25 -0500 |
commit | 6286c1284f62b9ea2d7144daae7ff9abf7d474c6 (patch) | |
tree | ac13f03d89be0c5c2223e7f385cf5df9fa705db9 /src/shell/history/mod.rs | |
parent | 9945a08434dc51d480d1e9303ee2fa7b5e823d7d (diff) | |
download | nbsh-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.rs | 2 |
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(); |