feat: different title for shell blocking mode

This commit is contained in:
sxyazi 2023-09-23 09:53:13 +08:00
parent cb13de9574
commit ec261a2708
No known key found for this signature in database

View file

@ -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,