mirror of
https://github.com/zellij-org/zellij.git
synced 2024-11-22 22:26:54 +03:00
fix(swap-layouts): properly identify plugin aliases (#3217)
This commit is contained in:
parent
6a3ecb1a3c
commit
5fb75ab6d1
@ -425,7 +425,7 @@ impl RunPlugin {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Clone, Hash, Default, PartialEq, Eq)]
|
||||
#[derive(Debug, Serialize, Deserialize, Clone, Hash, Default, Eq)]
|
||||
pub struct PluginAlias {
|
||||
pub name: String,
|
||||
pub configuration: Option<PluginUserConfiguration>,
|
||||
@ -433,6 +433,14 @@ pub struct PluginAlias {
|
||||
pub run_plugin: Option<RunPlugin>,
|
||||
}
|
||||
|
||||
impl PartialEq for PluginAlias {
|
||||
fn eq(&self, other: &Self) -> bool {
|
||||
self.name == other.name
|
||||
&& self.configuration == other.configuration
|
||||
&& self.initial_cwd == other.initial_cwd
|
||||
}
|
||||
}
|
||||
|
||||
impl PluginAlias {
|
||||
pub fn new(
|
||||
name: &str,
|
||||
|
Loading…
Reference in New Issue
Block a user