From dbe38401e53a6960eb6c3dc00b2ba1eebd1d0d23 Mon Sep 17 00:00:00 2001 From: Aram Drevekenin Date: Mon, 11 Nov 2024 17:44:38 +0100 Subject: [PATCH] fix(plugins): do not open extra instances of aliases (#3759) --- zellij-utils/src/input/layout.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zellij-utils/src/input/layout.rs b/zellij-utils/src/input/layout.rs index 7c91f12bfc..d4d8b261a5 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)