Commit Graph
3 Commits
Author SHA1 Message Date
dualfroz 20ac347794 Describe this repository 2026-10-22 21:04:10 +02:00
dualfroz 0f01568dd8 fix: match brackets preceded by an empty node
`find_pair` looked up the node under the cursor with an empty byte
range. When a zero-width node starts at that position, tree-sitter
returns it, and since it is hidden the lookup resolves to its visible
parent instead. Typst emits such a token right before the `(` or `[`
of a call, so on those brackets `mm` either did nothing or jumped to
the closing bracket of an outer pair. `find_matching_bracket` had the
same problem.

Look up the byte under the cursor instead, like the plaintext fallback
at the end of `find_pair` already does.
2026-10-17 03:51:18 +02:00
upstream 90d0dfc263 Upstream helix-editor/helix state of the touched files before e43dae3cdf 2026-10-17 03:51:18 +02:00