8000 Copy flagMode into shared dictionary structure. · postgrespro/shared_ispell@d7a1e85 · GitHub
[go: up one dir, main page]

Skip to content

Commit d7a1e85

Browse files
8000 committed
Copy flagMode into shared dictionary structure.
Issue postgrespro/hunspell_dicts#3 (comment)
1 parent 0ad59c2 commit d7a1e85

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/shared_ispell.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ init_shared_dict(DictInfo *info, MemoryContext infoCntx,
318318
NIStartBuild(dict);
319319
NIImportDictionary(dict, get_tsearch_config_filename(dictFile, "dict"));
320320

321+
dict->flagMode = info->dict.flagMode;
321322
dict->usecompound = info->dict.usecompound;
322323

323324
dict->nCompoundAffixFlag = dict->mCompoundAffixFlag =
@@ -816,6 +817,8 @@ copyIspellDict(IspellDict *dict, char *dictFile, char *affixFile, int size, int
816817
for (i = 0; i < copy->dict.nAffixData; i++)
817818
copy->dict.AffixData[i] = shstrcpy(dict->AffixData[i]);
818819

820+
copy->dict.flagMode = dict->flagMode;
821+
819822
copy->nbytes = size;
820823
copy->nwords = words;
821824

0 commit comments

Comments
 (0)
0