From 69f5cefa1f195d73944e0721004b66fa0f5e5712 Mon Sep 17 00:00:00 2001 From: SoraTenshi Date: Thu, 9 Mar 2023 13:59:58 +0100 Subject: [PATCH] Remove arbitrary view restriction for nodes --- helix-term/src/ui/editor.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index c51b35ac6..f80173e73 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -853,13 +853,6 @@ impl EditorView { let mut context: Vec = 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