We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9171520 commit dff1d67Copy full SHA for dff1d67
QuickNavigate/SearchUtil.cs
@@ -7,10 +7,11 @@ namespace QuickNavigate
7
internal static class SearchUtil
8
{
9
[NotNull]
10
- public static List<string> FindAll([NotNull] List<string> source, [NotNull] string search)
+ public static List<string> FindAll([NotNull] List<string> items, [NotNull] string search)
11
12
var length = search.Length;
13
- var result = source.FindAll(it =>
+ if (length == 0) return items;
14
+ var result = items.FindAll(it =>
15
16
var score = PluginCore.Controls.CompletionList.SmartMatch(it, search, length);
17
return score > 0 && score < 6;
0 commit comments