From 876500a25936738f45794a6fa94795e60c170a38 Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Wed, 28 Jan 2015 21:42:05 +0100 Subject: Fix correctness of string search The lookup for the skip value needs to be based upon the lowercase version of the current byte. --- src/FbTk/Menu.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { return t+p; } } - t += skip[text[t+p]]; + t += skip[std::tolower(text[t+p])]; } return std::string::npos; -- cgit v0.11.2