From e1997f6e7d16133f4909f1fa3b8e68552863920c Mon Sep 17 00:00:00 2001 From: Jae-Heon Ji <32578710+jaeheonji@users.noreply.github.com> Date: Thu, 30 Dec 2021 00:32:38 +0900 Subject: [PATCH] fix: update switch to tab bug in multiple users (#959) * fix: update switch to tab for multiple user * chore: remove unnecessary comments --- zellij-server/src/wasm_vm.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(); }