mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-18 06:29:44 +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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user