From fe930504a4bc570ad0a74372adb87e717854ba4b Mon Sep 17 00:00:00 2001
From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
Date: Sun, 26 Jan 2025 17:12:44 +1100
Subject: launcher: fix windows mode

Forgot to implement no limit when < 0
---
 src/modules/launcher.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/modules/launcher.tsx')

diff --git a/src/modules/launcher.tsx b/src/modules/launcher.tsx
index aeb7156..5c820ff 100644
--- a/src/modules/launcher.tsx
+++ b/src/modules/launcher.tsx
@@ -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 +
-- 
cgit v1.2.3-freya

