summaryrefslogtreecommitdiffstats
path: root/zellij-server/src/panes
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2023-08-25 18:28:15 +0200
committerGitHub <noreply@github.com>2023-08-25 18:28:15 +0200
commit8c2a4e8429a29c554a824dad30aa36c98b932003 (patch)
tree8d1ef2b9a1c69975bfee20f9a52fbc226843552c /zellij-server/src/panes
parent759ab9102b05b452489eea176187fd4c1d5bad8f (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.rs5
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)