Skip to content

Commit

Permalink
Added changes for AutoCompleteMenu
Browse files Browse the repository at this point in the history
  • Loading branch information
MonanLLC committed Sep 15, 2018
1 parent 9219298 commit 4a66b61
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions AutocompleteMenu/AutocompleteItem.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Text;
Expand All @@ -8,7 +8,9 @@ namespace AutocompleteMenuNS
/// <summary>
/// Item of autocomplete menu
/// </summary>
public class AutocompleteItem
{
public object Tag;
string toolTipTitle;
string toolTipText;
string menuText;
Expand Down Expand Up @@ -110,9 +112,10 @@ public virtual string GetTextForReplace()
/// </summary>
public virtual CompareResult Compare(string fragmentText)
{
if (Text.StartsWith(fragmentText, StringComparison.InvariantCultureIgnoreCase) &&
Text != fragmentText)
return CompareResult.VisibleAndSelected;
//if (Text.StartsWith(fragmentText, StringComparison.InvariantCultureIgnoreCase) &&
// Text != fragmentText)
if (Text.StartsWith(fragmentText, StringComparison.InvariantCultureIgnoreCase))
return CompareResult.VisibleAndSelected;

return CompareResult.Hidden;
}
Expand Down

0 comments on commit 4a66b61

Please sign in to comment.