fix: adapt to upstream change to win_viewport

handle `line_count` field that was added in
086631cd92
macos-click-through
Christian Clason 3 years ago committed by Keith Simmons
parent 1e8f4aacf5
commit 69187642e4

@ -228,6 +228,7 @@ pub enum RedrawEvent {
bottom_line: f64, bottom_line: f64,
current_line: f64, current_line: f64,
current_column: f64, current_column: f64,
line_count: f64,
}, },
CommandLineShow { CommandLineShow {
content: StyledContent, content: StyledContent,
@ -782,8 +783,9 @@ fn parse_win_viewport(win_viewport_arguments: Vec<Value>) -> Result<RedrawEvent>
Value::Nil, Value::Nil,
Value::Nil, Value::Nil,
Value::Nil, Value::Nil,
Value::Nil,
]; ];
let [grid, _window, top_line, bottom_line, current_line, current_column] = let [grid, _window, top_line, bottom_line, current_line, current_column, line_count] =
extract_values(win_viewport_arguments, values)?; extract_values(win_viewport_arguments, values)?;
Ok(RedrawEvent::WindowViewport { Ok(RedrawEvent::WindowViewport {
@ -792,6 +794,7 @@ fn parse_win_viewport(win_viewport_arguments: Vec<Value>) -> Result<RedrawEvent>
bottom_line: parse_f64(bottom_line)?, bottom_line: parse_f64(bottom_line)?,
current_line: parse_f64(current_line)?, current_line: parse_f64(current_line)?,
current_column: parse_f64(current_column)?, current_column: parse_f64(current_column)?,
line_count: parse_f64(line_count)?,
}) })
} }

Loading…
Cancel
Save