From 13f9a42ae526e74acbcea7f3d08def69c9f6b583 Mon Sep 17 00:00:00 2001 From: krasimir Date: Wed, 25 May 2016 12:19:26 +0000 Subject: [PATCH] fix the word completion in the C runtime --- src/runtime/c/pgf/parser.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runtime/c/pgf/parser.c b/src/runtime/c/pgf/parser.c index 7b0dda0be..8843a5f37 100644 --- a/src/runtime/c/pgf/parser.c +++ b/src/runtime/c/pgf/parser.c @@ -1232,6 +1232,7 @@ pgf_parsing_add_transition(PgfParsing* ps, PgfToken tok, PgfItem* item) if (gu_string_is_prefix(ps->prefix, tok)) { ps->tp = gu_new(PgfTokenProb, ps->out_pool); ps->tp->tok = tok; + ps->tp->cat = item->conts->ccat->cnccat->abscat->name; ps->tp->prob = item->inside_prob + item->conts->outside_prob; } } else {