Skip to content

Commit

Permalink
fix(plugins): do not open extra instances of aliases (#3759)
Browse files Browse the repository at this point in the history
  • Loading branch information
imsnif authored Nov 11, 2024
1 parent 3eb2ae9 commit dbe3840
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion zellij-utils/src/input/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dbe3840

Please sign in to comment.