summaryrefslogtreecommitdiff
path: root/menu_searchresults.c
diff options
context:
space:
mode:
authorChristian Wieninger <cwieninger@gmx.de>2011-01-05 13:32:05 +0100
committerChristian Wieninger <cwieninger@gmx.de>2011-01-05 13:32:05 +0100
commita98c3fffc3e35c7bb39eab26992df6c368cd9d8f (patch)
treeac2a1cf66fa6fe85d372b9a106ccc18c366f834e /menu_searchresults.c
parent2c3ba62dcfa8b55d7dd658f0596ea13415a59780 (diff)
downloadvdr-plugin-epgsearch-a98c3fffc3e35c7bb39eab26992df6c368cd9d8f.tar.gz
vdr-plugin-epgsearch-a98c3fffc3e35c7bb39eab26992df6c368cd9d8f.tar.bz2
various patches regarding localisation, spell correction and file attributes, thanks to Ville Skyttä
Diffstat (limited to 'menu_searchresults.c')
-rw-r--r--menu_searchresults.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/menu_searchresults.c b/menu_searchresults.c
index 7570c82..850af9d 100644
--- a/menu_searchresults.c
+++ b/menu_searchresults.c
@@ -750,7 +750,7 @@ bool cMenuSearchResultsForRecs::BuildList()
string s2 = searchExt->search;
if (s1.empty() || s2.empty()) continue;
- // tolerance for fuzzy searching: 90% of the shorter text lenght, but atleast 1
+ // tolerance for fuzzy searching: 90% of the shorter text length, but at least 1
int tolerance = std::max(1, (int)std::min(s1.size(), s2.size()) / 10);
bool match = FindIgnoreCase(s1, s2) >= 0 ||