aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJae-Heon Ji <32578710+jaeheonji@users.noreply.github.com>2021-12-30 00:32:38 +0900
committerGitHub <noreply@github.com>2021-12-29 16:32:38 +0100
commite1997f6e7d16133f4909f1fa3b8e68552863920c (patch)
treea63e5b94cae93330116c934697182d345767f923
parentdocs(changelog): asset creation fix (diff)
downloadsl0ppij-e1997f6e7d16133f4909f1fa3b8e68552863920c.tar.gz
sl0ppij-e1997f6e7d16133f4909f1fa3b8e68552863920c.tar.xz
sl0ppij-e1997f6e7d16133f4909f1fa3b8e68552863920c.zip
fix: update switch to tab bug in multiple users (#959)
* fix: update switch to tab for multiple user * chore: remove unnecessary comments
-rw-r--r--zellij-server/src/wasm_vm.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/zellij-server/src/wasm_vm.rs b/zellij-server/src/wasm_vm.rs
index 03d0531e..db55e1c4 100644
--- a/zellij-server/src/wasm_vm.rs
+++ b/zellij-server/src/wasm_vm.rs
@@ -398,7 +398,10 @@ fn host_open_file(plugin_env: &PluginEnv) {
fn host_switch_tab_to(plugin_env: &PluginEnv, tab_idx: u32) {
plugin_env
.senders
- .send_to_screen(ScreenInstruction::GoToTab(tab_idx, None)) // this is a hack, we should be able to return the client id here
+ .send_to_screen(ScreenInstruction::GoToTab(
+ tab_idx,
+ Some(plugin_env.client_id),
+ ))
.unwrap();
}