diff options
author | Aram Drevekenin <aram@poor.dev> | 2023-08-25 18:28:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-25 18:28:15 +0200 |
commit | 8c2a4e8429a29c554a824dad30aa36c98b932003 (patch) | |
tree | 8d1ef2b9a1c69975bfee20f9a52fbc226843552c /zellij-server/src/panes | |
parent | 759ab9102b05b452489eea176187fd4c1d5bad8f (diff) |
fix(plugins): make sure configuration is also part of the plugin keys (#2727)
* fix(plugins): make sure configuration is also part of the plugin keys
* no thanks clippy
Diffstat (limited to 'zellij-server/src/panes')
-rw-r--r-- | zellij-server/src/panes/floating_panes/mod.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/zellij-server/src/panes/floating_panes/mod.rs b/zellij-server/src/panes/floating_panes/mod.rs index 1f2d770bb..626ec811d 100644 --- a/zellij-server/src/panes/floating_panes/mod.rs +++ b/zellij-server/src/panes/floating_panes/mod.rs @@ -872,6 +872,11 @@ impl FloatingPanes { } pub fn get_plugin_pane_id(&self, run_plugin: &RunPlugin) -> Option<PaneId> { let run = Some(Run::Plugin(run_plugin.clone())); + let currently_running_invoked_with: Vec<Option<Run>> = self + .panes + .iter() + .map(|(_, p)| p.invoked_with().clone()) + .collect(); self.panes .iter() .find(|(_id, s_p)| s_p.invoked_with() == &run) |