fix(term): fix pipe and prompt

pull/13688/head
So1aric 2025-06-05 15:17:46 +08:00
parent e8b4be7aef
commit 962a27cab7
1 changed files with 3 additions and 3 deletions

View File

@ -6169,7 +6169,7 @@ fn shell_append_output(cx: &mut Context) {
}
fn shell_pipe_into_buffer(cx: &mut Context) {
shell_prompt(cx, "open-buffer:".into(), ShellBehavior::OpenBuffer);
shell_prompt(cx, "pipe-into-buffer:".into(), ShellBehavior::OpenBuffer);
}
fn shell_keep_pipe(cx: &mut Context) {
@ -6290,8 +6290,8 @@ async fn shell_impl_async(
fn shell(cx: &mut compositor::Context, cmd: &str, behavior: &ShellBehavior) {
let pipe = match behavior {
ShellBehavior::Replace | ShellBehavior::Ignore => true,
ShellBehavior::Insert | ShellBehavior::Append | ShellBehavior::OpenBuffer => false,
ShellBehavior::Replace | ShellBehavior::Ignore | ShellBehavior::OpenBuffer => true,
ShellBehavior::Insert | ShellBehavior::Append => false,
};
let config = cx.editor.config();