fix highlighting everything on strchoice page left/right

This commit is contained in:
2025-09-01 12:03:36 -05:00
committed by Celtic Minstrel
parent 5ff8f5c1e0
commit a483377765

View File

@@ -248,6 +248,7 @@ void cStringChoice::clearHighlights() {
bool cStringChoice::highlightSearch() { bool cStringChoice::highlightSearch() {
bool match_on_page = false; bool match_on_page = false;
if(search_str.empty()) return false;
for(int offset = 0; offset < per_page; ++offset){ for(int offset = 0; offset < per_page; ++offset){
std::string led_id = "led" + std::to_string(offset + 1); std::string led_id = "led" + std::to_string(offset + 1);