aboutsummaryrefslogtreecommitdiffstats
path: root/zellij-utils/src/input/layout.rs
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2024-11-11 17:44:38 +0100
committerGitHub <noreply@github.com>2024-11-11 17:44:38 +0100
commitdbe38401e53a6960eb6c3dc00b2ba1eebd1d0d23 (patch)
treec3daf92a1b28ee2b0ce61b10cff6f1c62146286e /zellij-utils/src/input/layout.rs
parentdocs(changelog): event ordering fix (diff)
downloadsl0ppij-dbe38401e53a6960eb6c3dc00b2ba1eebd1d0d23.tar.gz
sl0ppij-dbe38401e53a6960eb6c3dc00b2ba1eebd1d0d23.tar.xz
sl0ppij-dbe38401e53a6960eb6c3dc00b2ba1eebd1d0d23.zip
fix(plugins): do not open extra instances of aliases (#3759)
Diffstat (limited to 'zellij-utils/src/input/layout.rs')
-rw-r--r--zellij-utils/src/input/layout.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/zellij-utils/src/input/layout.rs b/zellij-utils/src/input/layout.rs
index 7c91f12b..d4d8b261 100644
--- a/zellij-utils/src/input/layout.rs
+++ b/zellij-utils/src/input/layout.rs
@@ -186,7 +186,11 @@ impl RunPluginOrAlias {
// configuration (i.e. None)
.and_then(|c| if c.inner().is_empty() { None } else { Some(c) })
== run_alias.configuration.as_ref().and_then(|c| {
- if c.inner().is_empty() {
+ let mut to_compare = c.inner().clone();
+ // caller_cwd is a special attribute given to alias and should not be
+ // considered when weighing configuration equivalency
+ to_compare.remove("caller_cwd");
+ if to_compare.is_empty() {
None
} else {
Some(c)