Merge branch 'sxyazi:main' into main

This commit is contained in:
Integral 2023-09-23 11:52:16 +08:00 committed by GitHub
commit df0cb36d41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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,