From 69187642e4f97b12d99b7597d0576b7b968e80a0 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Sat, 11 Sep 2021 14:46:41 +0200 Subject: [PATCH] fix: adapt to upstream change to win_viewport handle `line_count` field that was added in https://github.com/neovim/neovim/commit/086631cd92d7b60f122963f9fd1779583b19004c --- src/bridge/events.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bridge/events.rs b/src/bridge/events.rs index 0a69ab5..587cf79 100644 --- a/src/bridge/events.rs +++ b/src/bridge/events.rs @@ -228,6 +228,7 @@ pub enum RedrawEvent { bottom_line: f64, current_line: f64, current_column: f64, + line_count: f64, }, CommandLineShow { content: StyledContent, @@ -782,8 +783,9 @@ fn parse_win_viewport(win_viewport_arguments: Vec) -> Result 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)?; Ok(RedrawEvent::WindowViewport { @@ -792,6 +794,7 @@ fn parse_win_viewport(win_viewport_arguments: Vec) -> Result bottom_line: parse_f64(bottom_line)?, current_line: parse_f64(current_line)?, current_column: parse_f64(current_column)?, + line_count: parse_f64(line_count)?, }) }