mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-06-07 09:28:03 +08:00
Add empty actionParameters check (#148)
This commit is contained in:
parent
e5cc2ccaab
commit
8ec78688b8
@ -24,7 +24,7 @@ namespace Wox.Core.Plugin
|
|||||||
{ // use non global plugin for query
|
{ // use non global plugin for query
|
||||||
actionKeyword = possibleActionKeyword;
|
actionKeyword = possibleActionKeyword;
|
||||||
actionParameters = terms.Skip(1).ToList();
|
actionParameters = terms.Skip(1).ToList();
|
||||||
search = rawQuery.Substring(actionKeyword.Length + 1);
|
search = actionParameters.Count > 0 ? rawQuery.Substring(actionKeyword.Length + 1) : string.Empty;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{ // non action keyword
|
{ // non action keyword
|
||||||
|
Loading…
Reference in New Issue
Block a user