Skip to content

Commit 8ec7868

Browse files
authored
Add empty actionParameters check (#148)
1 parent e5cc2cc commit 8ec7868

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Wox.Core/Plugin/QueryBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static Query Build(string text, Dictionary<string, PluginPair> nonGlobalP
2424
{ // use non global plugin for query
2525
actionKeyword = possibleActionKeyword;
2626
actionParameters = terms.Skip(1).ToList();
27-
search = rawQuery.Substring(actionKeyword.Length + 1);
27+
search = actionParameters.Count > 0 ? rawQuery.Substring(actionKeyword.Length + 1) : string.Empty;
2828
}
2929
else
3030
{ // non action keyword

0 commit comments

Comments
 (0)