Close stdin
This commit is contained in:
parent
2d20b5d850
commit
a1a6031c6a
1 changed files with 5 additions and 1 deletions
|
@ -38,7 +38,7 @@ use std::{
|
||||||
env,
|
env,
|
||||||
io::{self, IsTerminal},
|
io::{self, IsTerminal},
|
||||||
path::{Path, PathBuf},
|
path::{Path, PathBuf},
|
||||||
process,
|
process::{self, Stdio},
|
||||||
sync::Arc,
|
sync::Arc,
|
||||||
};
|
};
|
||||||
use theme::{
|
use theme::{
|
||||||
|
@ -822,6 +822,10 @@ pub fn main() {
|
||||||
let status = smol::process::Command::new(&selection_change_command)
|
let status = smol::process::Command::new(&selection_change_command)
|
||||||
.arg(cursor.worktree_path.as_ref())
|
.arg(cursor.worktree_path.as_ref())
|
||||||
.arg(cursor_position_arg)
|
.arg(cursor_position_arg)
|
||||||
|
.stdin(Stdio::null())
|
||||||
|
// todo! It'd be better to distinguish the output in logs.
|
||||||
|
.stdout(Stdio::inherit())
|
||||||
|
.stderr(Stdio::inherit())
|
||||||
.status()
|
.status()
|
||||||
.await;
|
.await;
|
||||||
match status {
|
match status {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue