]> git.eshelyaron.com Git - emacs.git/commitdiff
; (Ftreesit_query_capture): Fix typo
authorDmitry Gutov <dgutov@yandex.ru>
Wed, 1 Feb 2023 01:53:38 +0000 (03:53 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Wed, 1 Feb 2023 01:53:38 +0000 (03:53 +0200)
src/treesit.c

index a5815903b4db221e10a55897da69f4ac0fe37fd3..b163685419f800e06c7b112de28fc5bc3aa48cea 100644 (file)
@@ -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);
        }