Skip to content

Commit

Permalink
feat: different title for shell blocking mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi committed Sep 23, 2023
1 parent cb13de9 commit ec261a2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/src/manager/tab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ec261a2

Please sign in to comment.