aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
authorMathias Gumz <akira@fluxbox.org>2015-01-28 20:42:05 (GMT)
committerMathias Gumz <akira@fluxbox.org>2015-01-28 20:42:05 (GMT)
commit876500a25936738f45794a6fa94795e60c170a38 (patch)
treee78c10ecf91546030116b427efe3e3d473e591a0 /src/FbTk
parent77f0963d00ecbd19e6d254b2d6a3fc5a2ebb1c29 (diff)
downloadfluxbox-876500a25936738f45794a6fa94795e60c170a38.zip
fluxbox-876500a25936738f45794a6fa94795e60c170a38.tar.bz2
Fix correctness of string search
The lookup for the skip value needs to be based upon the lowercase version of the current byte.
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/Menu.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc
index 246d65d..7172fe7 100644
--- a/src/FbTk/Menu.cc
+++ b/src/FbTk/Menu.cc
@@ -118,7 +118,7 @@ size_t search_string(const std::string& text, const std::string& pattern) {
118 return t+p; 118 return t+p;
119 } 119 }
120 } 120 }
121 t += skip[text[t+p]]; 121 t += skip[std::tolower(text[t+p])];
122 } 122 }
123 123
124 return std::string::npos; 124 return std::string::npos;