Fixed bug with full street suggest

This commit is contained in:
vng 2014-06-20 19:31:38 +03:00 committed by Alex Zolotarev
parent baa3a9f24a
commit 208e2ee280

View file

@ -682,7 +682,7 @@ void Query::GetSuggestion(string const & name, string & suggest) const
if (find(m_tokens.begin(), m_tokens.end(), vName[i]) != m_tokens.end())
tokensMatched[i] = true;
else
if (vName[i].size() > m_prefix.size() &&
if (vName[i].size() >= m_prefix.size() &&
StartsWith(vName[i].begin(), vName[i].end(), m_prefix.begin(), m_prefix.end()))
{
prefixMatched = true;