Add -e for exact searches (no fuzzy matches).

Only exact matches (or synonyms) are returned for simple searches.
This commit is contained in:
Peter
2017-07-28 11:27:19 +02:00
parent 586215fda7
commit e85927e562
11 changed files with 43 additions and 6 deletions

View File

@@ -1404,7 +1404,7 @@ bool Libs::LookupSimilarWord(const gchar* sWord, glong & iWordIndex, int iLib)
bool Libs::SimpleLookupWord(const gchar* sWord, glong & iWordIndex, int iLib)
{
bool bFound = oLib[iLib]->Lookup(sWord, iWordIndex);
if (!bFound)
if (!bFound && fuzzy_)
bFound = LookupSimilarWord(sWord, iWordIndex, iLib);
return bFound;
}