helix/helix-core/src
Michael Davis 5a1dcc2429
syntax: Reset query cursor byte range for textobjects
`InactiveQueryCursor::new` might reuse a query cursor from a
thread-local cache if one is available, rather than create a new cursor.
Currently tree-house does not reset cached cursors back to defaults
(i.e. byte range and match limit). For now we can patch around this here
but eventually this should be fixed in `tree-house` upstream. Then this
patch can be reverted.

In practice this caused textobjects like `]f` to get "stuck" trying to
move to the next function if it was out of the current view. This is
because the highlight query cursor sets the range of the cursor to the
current viewport. We can reset the byte range to defaults to fix the
textobject behavior.
2025-05-17 10:30:30 -04:00
..
doc_formatter Use the first char in a grapheme for classification (#12483) 2025-02-01 17:09:45 -06:00
increment Use non-deprecated chrono Duration functions 2024-03-14 14:13:56 +09:00
snippets Replace tree-sitter with tree-house 2025-05-13 18:43:43 -04:00
syntax Replace tree-sitter with tree-house 2025-05-13 18:43:43 -04:00
auto_pairs.rs chore: clean up clippy lints (#11377) 2024-08-01 06:39:46 +09:00
case_conversion.rs add snippet system to helix core 2024-12-17 13:34:39 -05:00
chars.rs Revert "Replace unicode-general-category with icu-properties (#10989)" (#11006) 2024-06-23 10:05:53 +09:00
command_line.rs feat: give formatters access to filename (#13429) 2025-04-28 17:34:05 -05:00
comment.rs syntax: Move config types to a separate module 2025-05-13 18:30:21 -04:00
completion.rs core: Make completion item documentation optional 2025-02-01 21:24:25 -05:00
config.rs syntax: Move config types to a separate module 2025-05-13 18:30:21 -04:00
diagnostic.rs Add pull diagnostics `identifier` to LSP diagnostic provider 2025-03-22 09:25:29 -04:00
diff.rs delete outdated reference to cessen/ropey#25 (#4928) 2022-11-28 19:07:47 -06:00
doc_formatter.rs Move rope grapheme iterators from core to stdx 2025-01-27 09:24:40 -05:00
editor_config.rs Support EditorConfig (#13056) 2025-03-22 16:06:41 +09:00
fuzzy.rs Bump nucleo to v0.4.1 2024-07-15 09:31:32 -04:00
graphemes.rs Use the first char in a grapheme for classification (#12483) 2025-02-01 17:09:45 -06:00
history.rs Prefer RopeSlice to &Rope in helix_core::syntax 2023-07-27 11:50:19 +09:00
indent.rs Replace tree-sitter with tree-house 2025-05-13 18:43:43 -04:00
lib.rs Replace tree-sitter with tree-house 2025-05-13 18:43:43 -04:00
line_ending.rs Add config for default line ending (#5621) 2023-06-16 12:02:15 -05:00
macros.rs Split parts of helix-term into helix-view. 2020-09-21 18:24:16 +09:00
match_brackets.rs Replace tree-sitter with tree-house 2025-05-13 18:43:43 -04:00
movement.rs Replace tree-sitter with tree-house 2025-05-13 18:43:43 -04:00
object.rs Replace tree-sitter with tree-house 2025-05-13 18:43:43 -04:00
position.rs Replace tree-sitter with tree-house 2025-05-13 18:43:43 -04:00
rope_reader.rs search buffer contents during global search (#5652) 2023-07-11 21:26:11 +09:00
search.rs Jump to the next number on the line before incrementing (#1778) 2022-04-01 22:14:37 +09:00
selection.rs Replace tree-sitter with tree-house 2025-05-13 18:43:43 -04:00
snippets.rs add snippet system to helix core 2024-12-17 13:34:39 -05:00
surround.rs test: match around closest pair tree-sitter version 2024-04-24 16:36:13 -04:00
syntax.rs syntax: Reset query cursor byte range for textobjects 2025-05-17 10:30:30 -04:00
test.rs perf: use `next_back` on `DoubleEndedIterator` 2025-04-06 12:03:14 -05:00
text_annotations.rs Replace tree-sitter with tree-house 2025-05-13 18:43:43 -04:00
textobject.rs Replace tree-sitter with tree-house 2025-05-13 18:43:43 -04:00
transaction.rs fix(clippy): clippy 1.83 lints (#12150) 2024-12-02 08:23:32 -06:00
uri.rs Make helix_core::Uri cheap to clone 2024-09-03 09:50:31 -04:00
wrap.rs fix: simplify text reflowing strategy to improve language compatibility (#12048) 2024-11-20 16:40:43 -06:00