aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/config.rs11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs
index ae26f76e..5e30b65a 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -1206,7 +1206,7 @@ fn deserialize_color_index<'a, D>(deserializer: D) -> ::std::result::Result<u8,
}
}
-#[derive(Copy, Clone, Debug, Default, Deserialize)]
+#[derive(Copy, Clone, Debug, Deserialize)]
pub struct Cursor {
#[serde(default, deserialize_with = "failure_default")]
pub style: CursorStyle,
@@ -1214,6 +1214,15 @@ pub struct Cursor {
pub unfocused_hollow: bool,
}
+impl Default for Cursor {
+ fn default() -> Self {
+ Self {
+ style: Default::default(),
+ unfocused_hollow: true,
+ }
+ }
+}
+
#[derive(Debug, Copy, Clone, Default, Deserialize)]
pub struct CursorColors {
#[serde(default, deserialize_with = "deserialize_optional_color")]