diff options
author | Pascal Kuthe | 2023-06-05 23:48:36 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2023-06-22 07:00:08 +0000 |
commit | a0359f7f22d26548d5680fb1dc177f6d4b07ad11 (patch) | |
tree | 787c64ce0c453fa872abe4f4ca04074a72dba0ed /helix-term/src/commands.rs | |
parent | 5dba649d81d706125e16fa695747ed936e7b105a (diff) |
make TS matching fallback to plaintext
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r-- | helix-term/src/commands.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 2c9295f1..1bd73652 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -4649,8 +4649,8 @@ fn match_brackets(cx: &mut Context) { let selection = doc.selection(view.id).clone().transform(|range| { let pos = range.cursor(text_slice); if let Some(matched_pos) = doc.syntax().map_or_else( - || match_brackets::find_matching_bracket_current_line_plaintext(text, pos), - |syntax| match_brackets::find_matching_bracket_fuzzy(syntax, text, pos), + || match_brackets::find_matching_bracket_plaintext(text.slice(..), pos), + |syntax| match_brackets::find_matching_bracket_fuzzy(syntax, text.slice(..), pos), ) { range.put_cursor(text_slice, matched_pos, is_select) } else { |