Merge pull request #390 from NenoLoje/users/nenoloje/improve-filtercategoriesbycontains

Improved categories filter textbox filtering
This commit is contained in:
Scott Lovegrove 2016-02-24 20:37:00 +00:00
commit 7831270d71
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ namespace OpenLiveWriter.PostEditor.PostPropertyEditing.CategoryControl
{
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))