From ec261a2708b6638a03797a8071b25c4db359b065 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Sat, 23 Sep 2023 09:53:13 +0800 Subject: [PATCH] feat: different title for shell blocking mode --- core/src/manager/tab.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/manager/tab.rs b/core/src/manager/tab.rs index bdac06e1..4e5971c1 100644 --- a/core/src/manager/tab.rs +++ b/core/src/manager/tab.rs @@ -366,7 +366,11 @@ impl Tab { let mut exec = exec.to_owned(); tokio::spawn(async move { if !confirm || exec.is_empty() { - let mut result = emit!(Input(InputOpt::top("Shell:").with_value(&exec).with_highlight())); + let mut result = emit!(Input( + InputOpt::top(if block { "Shell (block):" } else { "Shell:" }) + .with_value(&exec) + .with_highlight() + )); match result.recv().await { Some(Ok(e)) => exec = e, _ => return,