Add empty actionParameters check (#148)

This commit is contained in:
Jeremy Wu 2020-02-27 09:14:45 +11:00 committed by GitHub
parent e5cc2ccaab
commit 8ec78688b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ namespace Wox.Core.Plugin
{ // use non global plugin for query
actionKeyword = possibleActionKeyword;
actionParameters = terms.Skip(1).ToList();
search = rawQuery.Substring(actionKeyword.Length + 1);
search = actionParameters.Count > 0 ? rawQuery.Substring(actionKeyword.Length + 1) : string.Empty;
}
else
{ // non action keyword