summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2024-04-24 11:27:38 +0200
committerAram Drevekenin <aram@poor.dev>2024-04-24 11:27:38 +0200
commit8ffa99ae6811ae0fde7d76234be786c5210aec50 (patch)
treec3af8c78666fd2762681ce33b29953a1ba399c60
parent9824557d0d1abe76cfb5df2253181e4a608b3a16 (diff)
fix(cli): tab and pane name inputfix-cli-multiple-actions
-rw-r--r--zellij-client/src/cli_client.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/zellij-client/src/cli_client.rs b/zellij-client/src/cli_client.rs
index 30e406031..620b5a827 100644
--- a/zellij-client/src/cli_client.rs
+++ b/zellij-client/src/cli_client.rs
@@ -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(
@@ -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>,
@@ -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}"));
@@ -225,7 +225,7 @@ fn single_message_client(
process::exit(2);
},
_ => {
- process::exit(0);
+ break;
},
},
_ => {},