mirror of
https://github.com/zellij-org/zellij.git
synced 2024-11-22 04:33:22 +03:00
fix(plugins): do not open extra instances of aliases
This commit is contained in:
parent
3eb2ae959a
commit
cecde6b696
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user