From f1cad403947e4d42385ea6c77294ac7e14409c05 Mon Sep 17 00:00:00 2001 From: Krasimir Angelov Date: Tue, 12 Jul 2022 14:02:08 +0200 Subject: [PATCH] lookupMorpho/lookupCohorts now report only lexical items --- src/runtime/c/pgf/phrasetable.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/c/pgf/phrasetable.cxx b/src/runtime/c/pgf/phrasetable.cxx index 1dc10b1f4..067e4ce99 100644 --- a/src/runtime/c/pgf/phrasetable.cxx +++ b/src/runtime/c/pgf/phrasetable.cxx @@ -504,7 +504,7 @@ void phrasetable_lookup(PgfPhrasetable table, ref lin = ref::untagged(backref.container); ref lincat = namespace_lookup(lincats, &lin->absfun->type->name); - if (lincat != 0) { + if (lin->absfun->type->hypos->len == 0 && lincat != 0) { ref field = *vector_elem(lincat->fields, backref.seq_index % lincat->fields->len); @@ -602,7 +602,7 @@ void phrasetable_lookup_prefixes(PgfCohortsState *state, ref lin = ref::untagged(backref.container); ref lincat = namespace_lookup(state->lincats, &lin->absfun->type->name); - if (lincat != 0) { + if (lin->absfun->type->hypos->len == 0 && lincat != 0) { ref field = *vector_elem(lincat->fields, backref.seq_index % lincat->fields->len);