From 66aa9cb450ae3f313e836eed27de553df736e0f3 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Wed, 1 Feb 2023 03:53:38 +0200 Subject: [PATCH] ; (Ftreesit_query_capture): Fix typo --- src/treesit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.39.2