removed disable_echo flag from commands that don't support it

This commit is contained in:
Valerie Wolfe 2024-03-08 13:50:27 -05:00
parent 882e130121
commit 782fb694d0

View file

@ -55,7 +55,7 @@ pub fn attach(pargs: &mut Arguments) {
// build dispatch // build dispatch
let mut tmux = Tmux::new().add_command(attach); let mut tmux = Tmux::new().add_command(attach);
if let Some(select_window) = select_window { tmux = tmux.add_command(select_window); } if let Some(select_window) = select_window { tmux = tmux.add_command(select_window); }
tmux.disable_echo().output().ok(); tmux.output().ok();
} }
pub fn detach(pargs: &mut Arguments) { pub fn detach(pargs: &mut Arguments) {
@ -77,7 +77,7 @@ pub fn detach(pargs: &mut Arguments) {
.target_session(target); .target_session(target);
Tmux::new() Tmux::new()
.add_command(detach) .add_command(detach)
.disable_echo().output().ok(); .output().ok();
} }
pub fn has(pargs: &mut Arguments) { pub fn has(pargs: &mut Arguments) {
@ -168,6 +168,6 @@ pub fn new(pargs: &mut Arguments) {
Tmux::new() Tmux::new()
.add_command(new) .add_command(new)
.disable_echo().output().ok(); .output().ok();
} }