Skip to content

Commit

Permalink
Remove arbitrary view restriction for nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
SoraTenshi committed Mar 9, 2023
1 parent f22cbf9 commit 69f5cef
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions helix-term/src/ui/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -853,13 +853,6 @@ impl EditorView {
let mut context: Vec<StickyNode> = Vec::new();

while let Some(node) = parent {
// if the node is smaller than half the viewport height, skip
if (node.end_position().row - node.start_position().row) < viewport.height as usize / 2
{
parent = node.parent();
continue;
}

let line = text.char_to_line(node.start_byte());

// if parent of previous node is still on the same line, use the parent node
Expand Down

0 comments on commit 69f5cef

Please sign in to comment.