зеркало из https://github.com/mozilla/pjs.git
fix searching on tags/keywords when the keyword isn't the first one on the message, sr=sspitzer 341432
This commit is contained in:
Родитель
c2320b3bdf
Коммит
c3eb66c30a
|
@ -1361,7 +1361,7 @@ nsresult nsMsgSearchTerm::MatchKeyword(const char *keyword, PRBool *pResult)
|
||||||
{
|
{
|
||||||
const char *keywordLoc = PL_strstr(keyword, m_value.string);
|
const char *keywordLoc = PL_strstr(keyword, m_value.string);
|
||||||
const char *startOfKeyword = keyword;
|
const char *startOfKeyword = keyword;
|
||||||
PRUint32 keywordLen = strlen(keyword);
|
PRUint32 keywordLen = strlen(m_value.string);
|
||||||
while (keywordLoc)
|
while (keywordLoc)
|
||||||
{
|
{
|
||||||
// if the keyword is at the beginning of the string, then it's a match if
|
// if the keyword is at the beginning of the string, then it's a match if
|
||||||
|
|
Загрузка…
Ссылка в новой задаче