summaryrefslogtreecommitdiffstats
path: root/src/shell/history/mod.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-01-11 00:10:56 -0500
committerJesse Luehrs <doy@tozt.net>2022-01-11 00:37:09 -0500
commit4086fc1f83673554f9b9695e853c44dd895add23 (patch)
tree0ce4aa198f1cce027c726dc90e11c923cd0e4447 /src/shell/history/mod.rs
parent5bce22093b4b0778f729d8d92e37f42214f78fc5 (diff)
downloadnbsh-4086fc1f83673554f9b9695e853c44dd895add23.tar.gz
nbsh-4086fc1f83673554f9b9695e853c44dd895add23.zip
highlight the specific pipeline that is currently running
Diffstat (limited to 'src/shell/history/mod.rs')
-rw-r--r--src/shell/history/mod.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/shell/history/mod.rs b/src/shell/history/mod.rs
index e206a9b..8f4f56a 100644
--- a/src/shell/history/mod.rs
+++ b/src/shell/history/mod.rs
@@ -356,6 +356,13 @@ async fn spawn_commands(
};
match read.or(exit).await {
Res::Read(Ok(event)) => match event {
+ crate::runner::Event::RunPipeline(idx, span) => {
+ event_w
+ .send(Event::ChildRunPipeline(idx, span))
+ .await
+ .unwrap();
+ new_read();
+ }
crate::runner::Event::Suspend(idx) => {
event_w.send(Event::ChildSuspend(idx)).await.unwrap();
new_read();