mirror of
https://github.com/neovim/neovim.git
synced 2024-09-17 20:58:20 -04:00
fix(treesitter): reset cursor max_start_depth
This commit is contained in:
parent
af040c3a07
commit
e124672ce9
@ -1349,6 +1349,11 @@ static int node_rawquery(lua_State *L)
|
||||
} else {
|
||||
cursor = ts_query_cursor_new();
|
||||
}
|
||||
|
||||
#ifdef NVIM_TS_HAS_SET_MAX_START_DEPTH
|
||||
// reset the start depth
|
||||
ts_query_cursor_set_max_start_depth(cursor, 0);
|
||||
#endif
|
||||
ts_query_cursor_set_match_limit(cursor, 256);
|
||||
ts_query_cursor_exec(cursor, query, node);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user