We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f1ac28 commit 5c86da0Copy full SHA for 5c86da0
addon/doxysearch/doxysearch.cpp
@@ -253,7 +253,7 @@ static void highlighter(const std::string &s,
253
size_t bi=i-(fragLen-wl)/2;
254
size_t ei=i+wl+(fragLen-wl)/2;
255
int occ=0;
256
- if (bi<0) { ei-=bi; bi=0; } else startFragment=dots;
+ if (bi>sl) { ei-=bi; bi=0; } else startFragment=dots;
257
if (ei>sl) { ei=sl; } else endFragment=dots;
258
while (bi>0 && !isspace(s[bi])) bi--; // round to start of the word
259
while (ei<sl && !isspace(s[ei])) ei++; // round to end of the word
0 commit comments