mirror of https://github.com/helix-editor/helix
`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. |
||
---|---|---|
.. | ||
src | ||
tests | ||
.gitignore | ||
Cargo.toml |