diff options
Diffstat (limited to 'zellij-server')
-rw-r--r-- | zellij-server/src/plugins/unit/plugin_tests.rs | 4 | ||||
-rw-r--r-- | zellij-server/src/route.rs | 2 | ||||
-rw-r--r-- | zellij-server/src/screen.rs | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/zellij-server/src/plugins/unit/plugin_tests.rs b/zellij-server/src/plugins/unit/plugin_tests.rs index 35e613bc6..08ac5b832 100644 --- a/zellij-server/src/plugins/unit/plugin_tests.rs +++ b/zellij-server/src/plugins/unit/plugin_tests.rs @@ -5398,7 +5398,7 @@ pub fn run_command_plugin_command() { )])); background_jobs_thread.join().unwrap(); // this might take a while if the cache is cold teardown(); - let new_tab_event = received_background_jobs_instructions + let new_background_job = received_background_jobs_instructions .lock() .unwrap() .iter() @@ -5410,7 +5410,7 @@ pub fn run_command_plugin_command() { } }) .clone(); - assert_snapshot!(format!("{:#?}", new_tab_event)); + assert!(format!("{:#?}", new_background_job).contains("user_value_1")); } #[test] diff --git a/zellij-server/src/route.rs b/zellij-server/src/route.rs index 45de939eb..cbab1ffac 100644 --- a/zellij-server/src/route.rs +++ b/zellij-server/src/route.rs @@ -708,14 +708,12 @@ pub(crate) fn route_action( Action::LaunchPlugin( run_plugin, should_float, - move_to_focused_tab, should_open_in_place, ) => { senders .send_to_screen(ScreenInstruction::LaunchPlugin( run_plugin, should_float, - move_to_focused_tab, should_open_in_place, pane_id, client_id, diff --git a/zellij-server/src/screen.rs b/zellij-server/src/screen.rs index 04fc0d719..d89e7eb1d 100644 --- a/zellij-server/src/screen.rs +++ b/zellij-server/src/screen.rs @@ -294,7 +294,7 @@ pub enum ScreenInstruction { ProgressPluginLoadingOffset(u32), // u32 - plugin id RequestStateUpdateForPlugins, LaunchOrFocusPlugin(RunPlugin, bool, bool, bool, Option<PaneId>, ClientId), // bools are: should_float, move_to_focused_tab, should_open_in_place Option<PaneId> is the pane id to replace - LaunchPlugin(RunPlugin, bool, bool, bool, Option<PaneId>, ClientId), // bools are: should_float, move_to_focused_tab, should_open_in_place Option<PaneId> is the pane id to replace + LaunchPlugin(RunPlugin, bool, bool, Option<PaneId>, ClientId), // bools are: should_float, should_open_in_place Option<PaneId> is the pane id to replace SuppressPane(PaneId, ClientId), // bool is should_float FocusPaneWithId(PaneId, bool, ClientId), // bool is should_float RenamePane(PaneId, Vec<u8>), @@ -3411,7 +3411,6 @@ pub(crate) fn screen_thread_main( ScreenInstruction::LaunchPlugin( run_plugin, should_float, - move_to_focused_tab, should_open_in_place, pane_id_to_replace, client_id, |