mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-18 13:55:23 -05:00
parent
f94f4fd4be
commit
7c9d9f3b16
2 changed files with 5 additions and 2 deletions
|
@ -74,6 +74,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||
- Vi cursor position not redrawn on PageUp/PageDown without scrollback
|
||||
- Cursor not updating when blinking and viewport is scrolled
|
||||
- Failure to start with recent version of mesa's i915 driver
|
||||
- Error when using `chars` inside the mouse bindings
|
||||
|
||||
### Removed
|
||||
|
||||
|
|
|
@ -899,7 +899,7 @@ impl<'a> Deserialize<'a> for MouseButtonWrapper {
|
|||
type Value = MouseButtonWrapper;
|
||||
|
||||
fn expecting(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
f.write_str("Left, Right, Middle, or a number from 0 to 65536")
|
||||
f.write_str("Left, Right, Middle, Back, Forward, or a number from 0 to 65536")
|
||||
}
|
||||
|
||||
fn visit_u64<E>(self, value: u64) -> Result<MouseButtonWrapper, E>
|
||||
|
@ -920,6 +920,8 @@ impl<'a> Deserialize<'a> for MouseButtonWrapper {
|
|||
"Left" => Ok(MouseButtonWrapper(MouseButton::Left)),
|
||||
"Right" => Ok(MouseButtonWrapper(MouseButton::Right)),
|
||||
"Middle" => Ok(MouseButtonWrapper(MouseButton::Middle)),
|
||||
"Back" => Ok(MouseButtonWrapper(MouseButton::Back)),
|
||||
"Forward" => Ok(MouseButtonWrapper(MouseButton::Forward)),
|
||||
_ => Err(E::invalid_value(Unexpected::Str(value), &self)),
|
||||
}
|
||||
}
|
||||
|
@ -1134,7 +1136,7 @@ impl<'a> Deserialize<'a> for RawBinding {
|
|||
chars = Some(map.next_value()?);
|
||||
},
|
||||
Field::Mouse => {
|
||||
if chars.is_some() {
|
||||
if mouse.is_some() {
|
||||
return Err(<V::Error as Error>::duplicate_field("mouse"));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue