Remove arbitrary view restriction for nodes

pull/6118/merge^2
SoraTenshi 1 year ago
parent f22cbf9b48
commit 69f5cefa1f

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

Loading…
Cancel
Save