diff options
author | Patrycja Balik <patrycjabalik@gmail.com> | 2018-07-15 15:10:33 +0200 |
---|---|---|
committer | Christian Duerr <chrisduerr@users.noreply.github.com> | 2018-07-15 13:10:33 +0000 |
commit | 18f6a7814a7aff8fb06d6b9a795e0f8144954d1f (patch) | |
tree | 4003b07d0d2705c74227147f871351a579021121 /src/config.rs | |
parent | 4928b0ae75aa326e8dd96e745fb701ae1ce1fce1 (diff) | |
download | alacritty-18f6a7814a7aff8fb06d6b9a795e0f8144954d1f.tar.gz alacritty-18f6a7814a7aff8fb06d6b9a795e0f8144954d1f.zip |
Add config for unfocused window cursor change
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs index cdf1dc21..95058d38 100644 --- a/src/config.rs +++ b/src/config.rs @@ -390,6 +390,10 @@ pub struct Config { #[serde(default, deserialize_with = "failure_default")] cursor_style: CursorStyle, + /// Use hollow block cursor when unfocused + #[serde(default="true_bool", deserialize_with = "default_true_bool")] + unfocused_hollow_cursor: bool, + /// Live config reload #[serde(default="true_bool", deserialize_with = "default_true_bool")] live_config_reload: bool, @@ -1363,6 +1367,12 @@ impl Config { self.cursor_style } + /// Use hollow block cursor when unfocused + #[inline] + pub fn unfocused_hollow_cursor(&self) -> bool { + self.unfocused_hollow_cursor + } + /// Live config reload #[inline] pub fn live_config_reload(&self) -> bool { |