Fix correctness of string search The lookup for the skip value needs to be based upon the lowercase version of the current byte.
Mathias Gumz akira@fluxbox.org
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/FbTk/Menu.cc
→
src/FbTk/Menu.cc
@@ -118,7 +118,7 @@ if (p == 0) {
return t+p; } } - t += skip[text[t+p]]; + t += skip[std::tolower(text[t+p])]; } return std::string::npos;