From f6bafab58d945b57c8e6b45317bb732a67b7703e Mon Sep 17 00:00:00 2001 From: MDeiml Date: Thu, 21 Jul 2022 08:34:39 +0200 Subject: [PATCH] Exclude only named children without injection.include-children --- helix-core/src/syntax.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-core/src/syntax.rs b/helix-core/src/syntax.rs index 8d7520c3d131..dfc3bef76d8c 100644 --- a/helix-core/src/syntax.rs +++ b/helix-core/src/syntax.rs @@ -1457,7 +1457,7 @@ fn intersect_ranges( }; for excluded_range in node - .children(&mut cursor) + .named_children(&mut cursor) .filter_map(|child| { if includes_children { None