Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): tab and pane name input #3295

Merged
merged 1 commit into from
Apr 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading