From 8363705939dd35d25832db0b536b250d29d924a1 Mon Sep 17 00:00:00 2001 From: a-kenji Date: Fri, 9 Jul 2021 15:01:05 +0200 Subject: [PATCH] Add serde-alias for on_force_close * It doesn't deserialize from the configuration otherwise, if specified in lower-case. Alternative: use a rename. --- zellij-utils/src/input/options.rs | 2 ++ 1 file changed, 2 insertions(+) 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, }