From e34edd414f42e5cb473af50a106ff6c6e605860a Mon Sep 17 00:00:00 2001 From: Krasimir Angelov Date: Mon, 17 Nov 2025 16:51:29 +0100 Subject: [PATCH] fix item completion --- src/runtime/c/pgf/parser.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/runtime/c/pgf/parser.cxx b/src/runtime/c/pgf/parser.cxx index 894d69e25..d319f5e4a 100644 --- a/src/runtime/c/pgf/parser.cxx +++ b/src/runtime/c/pgf/parser.cxx @@ -232,6 +232,10 @@ void PgfAbstractParser::complete(Item *item, const PgfTextSpot &spot, bool bind) case PgfConcrLin::tag: { auto lin = ref::untagged(item->rule->container); + if (strcmp(lin->name.text, "ComplSlash") == 0) { + printf("complete ComplSlash\n"); + } + size_t max_value = 1; size_t n_inst_vars = 0; @@ -352,10 +356,7 @@ void PgfAbstractParser::complete(Item *item, const PgfTextSpot &spot, bool bind) size_t lin_idx = it.first; Cont *cont = it.second; if (cont != NULL) { - size_t n_items = cont->suspended.size(); - for (size_t i = 0; i < n_items; i++) { - td_predict(next,cont,prod,lin_idx); - } + td_predict(next,cont,prod,lin_idx); } } next = next->next;