mirror of
https://github.com/Dushistov/sdcv.git
synced 2025-12-16 09:51:56 +00:00
Add -e for exact searches (no fuzzy matches).
Only exact matches (or synonyms) are returned for simple searches.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user