From 96d7b7e7656e99401c31e979fd227c51662024c0 Mon Sep 17 00:00:00 2001 From: SoraTenshi Date: Thu, 23 Mar 2023 19:44:36 +0100 Subject: [PATCH] Rephrase Documentation to use line instead of node Fix dead code --- book/src/configuration.md | 4 ++-- helix-term/src/ui/editor.rs | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/book/src/configuration.md b/book/src/configuration.md index 4c5489dc0..fabc6a902 100644 --- a/book/src/configuration.md +++ b/book/src/configuration.md @@ -341,13 +341,13 @@ wrap-indicator = "" # set wrap-indicator to "" to hide it ### `[editor.sticky-context]` Section -Option for sticky context, which is a feature that sticks bigger blocks of code +Option for sticky context, which is a feature that puts bigger blocks of code e.g. Functions to the top of the viewport | Key | Description | Default | | --- | --- | --- | | `enable` | Display context of current line if outside the view | `false` | -| `indicator` | Display an additional node to indicate what part of the view is the sticky context | `false` | +| `indicator` | Display an additional line to indicate what part of the view is the sticky context | `false` | | `max-lines` | The maximum number of lines to be shown as sticky context. 0 = 1/3 of the viewports height | `0` | Example: diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 3948b2080..621816e68 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -915,7 +915,6 @@ impl EditorView { end_index: u32, top_first_byte: usize, cursor_byte: usize, - // ) -> Option> { ) -> Option> { let end_nodes: Vec<_> = query_match.nodes_for_capture_index(end_index).collect(); query_match