diff options
Diffstat (limited to 'helix-core/src/match_brackets.rs')
-rw-r--r-- | helix-core/src/match_brackets.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-core/src/match_brackets.rs b/helix-core/src/match_brackets.rs index f641d094..fd161776 100644 --- a/helix-core/src/match_brackets.rs +++ b/helix-core/src/match_brackets.rs @@ -5,7 +5,7 @@ use crate::{Range, Rope, Selection, Syntax}; #[must_use] pub fn find(syntax: &Syntax, doc: &Rope, pos: usize) -> Option<usize> { - let tree = syntax.root_layer.tree.as_ref().unwrap(); + let tree = syntax.tree(); let byte_pos = doc.char_to_byte(pos); |