From 6286c1284f62b9ea2d7144daae7ff9abf7d474c6 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 8 Jan 2022 20:50:25 -0500 Subject: we also don't need to keep reading if we get an Exit event --- src/shell/history/mod.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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(); -- cgit v1.2.3-54-g00ecf