launcher: fix windows mode
Forgot to implement no limit when < 0
This commit is contained in:
parent
6460b71aee
commit
fe930504a4
1 changed files with 1 additions and 1 deletions
|
|
@ -590,7 +590,7 @@ const Results = ({ entry, mode }: { entry: Widget.Entry; mode: Variable<Mode> })
|
|||
if (entry.text) {
|
||||
const clients = fuzzysort.go(entry.text, unsortedClients, {
|
||||
all: true,
|
||||
limit: config.windows.maxResults,
|
||||
limit: config.windows.maxResults < 0 ? undefined : config.windows.maxResults,
|
||||
keys: ["title", "class", "initialTitle", "initialClass"],
|
||||
scoreFn: r =>
|
||||
r[0].score * config.windows.weights.title +
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue