Merge pull request #390 from NenoLoje/users/nenoloje/improve-filtercategoriesbycontains
Improved categories filter textbox filtering
This commit is contained in:
commit
7831270d71
|
@ -252,7 +252,7 @@ namespace OpenLiveWriter.PostEditor.PostPropertyEditing.CategoryControl
|
||||||
{
|
{
|
||||||
Predicate<TreeNode> prefixPredicate = delegate (TreeNode node)
|
Predicate<TreeNode> prefixPredicate = delegate (TreeNode node)
|
||||||
{
|
{
|
||||||
return node.Text.ToLower(CultureInfo.CurrentCulture).StartsWith(criteria);
|
return node.Text.ToLower(CultureInfo.CurrentCulture).IndexOf(criteria, StringComparison.CurrentCultureIgnoreCase) >= 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (criteria.Length > 0 && criteria.StartsWith(lastQuery))
|
if (criteria.Length > 0 && criteria.StartsWith(lastQuery))
|
||||||
|
|
Loading…
Reference in New Issue