Rephrase Documentation to use line instead of node

Fix dead code
pull/6118/merge^2
SoraTenshi 1 year ago
parent 8baefb8b0b
commit 96d7b7e765

@ -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:

@ -915,7 +915,6 @@ impl EditorView {
end_index: u32,
top_first_byte: usize,
cursor_byte: usize,
// ) -> Option<std::ops::Range<usize>> {
) -> Option<std::ops::Range<usize>> {
let end_nodes: Vec<_> = query_match.nodes_for_capture_index(end_index).collect();
query_match

Loading…
Cancel
Save