summaryrefslogtreecommitdiff
path: root/src/treesit.c
diff options
context:
space:
mode:
authorDmitry Gutov <dgutov@yandex.ru>2023-02-01 03:53:38 +0200
committerDmitry Gutov <dgutov@yandex.ru>2023-02-01 03:53:38 +0200
commit66aa9cb450ae3f313e836eed27de553df736e0f3 (patch)
tree3af2ef9366fb44caebe11e8f1c5edd5e6a026e86 /src/treesit.c
parentf711f4e99f7f2b213e70d14c808261b93ed10c36 (diff)
downloademacs-66aa9cb450ae3f313e836eed27de553df736e0f3.tar.gz
; (Ftreesit_query_capture): Fix typo
Diffstat (limited to 'src/treesit.c')
-rw-r--r--src/treesit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/treesit.c b/src/treesit.c
index a5815903b4d..b163685419f 100644
--- a/src/treesit.c
+++ b/src/treesit.c
@@ -2755,7 +2755,8 @@ the query. */)
Lisp_Object predicates = AREF (predicates_table, match.pattern_index);
if (EQ (predicates, Qt))
{
- predicates = treesit_predicates_for_pattern (treesit_query, 0);
+ predicates = treesit_predicates_for_pattern (treesit_query,
+ match.pattern_index);
ASET (predicates_table, match.pattern_index, predicates);
}