Skip to content

Commit

Permalink
issue #10417 Search bar not working
Browse files Browse the repository at this point in the history
  • Loading branch information
doxygen committed Nov 25, 2023
1 parent 2e76970 commit 9293483
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/searchindex_js.cpp
Expand Up @@ -126,10 +126,13 @@ static void splitSearchTokens(QCString &title,IntVector &indices)
}
p = i+1;
}
std::string word = title.mid(p).str();
if (wordsFound.find(word)==wordsFound.end())
if (p<static_cast<int>(title.length()))
{
indices.push_back(p);
std::string word = title.mid(p).str();
if (wordsFound.find(word)==wordsFound.end())
{
indices.push_back(p);
}
}
}

Expand Down

0 comments on commit 9293483

Please sign in to comment.