summaryrefslogtreecommitdiffstats
path: root/zellij-utils
diff options
context:
space:
mode:
authora-kenji <aks.kenji@protonmail.com>2021-07-09 15:01:05 +0200
committera-kenji <aks.kenji@protonmail.com>2021-07-09 15:05:47 +0200
commit8363705939dd35d25832db0b536b250d29d924a1 (patch)
tree612c5b3e0db184de77b7bd4b406ba5e842a5a243 /zellij-utils
parentcf8d5a7a4d7ad6bc350292b3fa1f583d04b21e6c (diff)
Add serde-alias for on_force_close
* It doesn't deserialize from the configuration otherwise, if specified in lower-case. Alternative: use a rename.
Diffstat (limited to 'zellij-utils')
-rw-r--r--zellij-utils/src/input/options.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/zellij-utils/src/input/options.rs b/zellij-utils/src/input/options.rs
index 714e6524b..a2f9231cd 100644
--- a/zellij-utils/src/input/options.rs
+++ b/zellij-utils/src/input/options.rs
@@ -8,7 +8,9 @@ use zellij_tile::data::InputMode;
#[derive(Copy, Clone, Debug, PartialEq, Deserialize, Serialize)]
pub enum OnForceClose {
+ #[serde(alias = "quit")]
Quit,
+ #[serde(alias = "detach")]
Detach,
}