Skip to content

Commit d7a1e85

Browse files
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy