Skip to content

Commit dff1d67

Browse files
author
SlavaRa
committed
WIP
1 parent 9171520 commit dff1d67

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

QuickNavigate/SearchUtil.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ namespace QuickNavigate
77
internal static class SearchUtil
88
{
99
[NotNull]
10-
public static List<string> FindAll([NotNull] List<string> source, [NotNull] string search)
10+
public static List<string> FindAll([NotNull] List<string> items, [NotNull] string search)
1111
{
1212
var length = search.Length;
13-
var result = source.FindAll(it =>
13+
if (length == 0) return items;
14+
var result = items.FindAll(it =>
1415
{
1516
var score = PluginCore.Controls.CompletionList.SmartMatch(it, search, length);
1617
return score > 0 && score < 6;

0 commit comments

Comments
 (0)