Skip to content

Commit

Permalink
fix(cli): tab and pane name input (#3295)
Browse files Browse the repository at this point in the history
  • Loading branch information
imsnif committed Apr 24, 2024
1 parent 9824557 commit 18eff3f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions zellij-client/src/cli_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,11 @@ pub fn start_cli_client(
);
},
action => {
single_message_client(&mut os_input, action, pane_id);
individual_messages_client(&mut os_input, action, pane_id);
},
}
}
os_input.send_to_server(ClientToServerMsg::ClientExited);
}

fn pipe_client(
Expand Down Expand Up @@ -198,7 +199,7 @@ fn pipe_client(
}
}

fn single_message_client(
fn individual_messages_client(
os_input: &mut Box<dyn ClientOsApi>,
action: Action,
pane_id: Option<u32>,
Expand All @@ -208,12 +209,11 @@ fn single_message_client(
loop {
match os_input.recv_from_server() {
Some((ServerToClientMsg::UnblockInputThread, _)) => {
os_input.send_to_server(ClientToServerMsg::ClientExited);
process::exit(0);
break;
},
Some((ServerToClientMsg::Log(log_lines), _)) => {
log_lines.iter().for_each(|line| println!("{line}"));
process::exit(0);
break;
},
Some((ServerToClientMsg::LogError(log_lines), _)) => {
log_lines.iter().for_each(|line| eprintln!("{line}"));
Expand All @@ -225,7 +225,7 @@ fn single_message_client(
process::exit(2);
},
_ => {
process::exit(0);
break;
},
},
_ => {},
Expand Down

0 comments on commit 18eff3f

Please sign in to comment.