From 769ad737373d22e12ebbac89bfb25be6f518c6bc Mon Sep 17 00:00:00 2001 From: ew <53885068+izumisagirii@users.noreply.github.com> Date: Mon, 13 Oct 2025 22:33:08 +0800 Subject: [PATCH] Handle empty search in fuzzyQuery function Add check for empty search string in fuzzyQuery function. --- .config/quickshell/ii/services/Cliphist.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/quickshell/ii/services/Cliphist.qml b/.config/quickshell/ii/services/Cliphist.qml index 568526c12..615e949fb 100644 --- a/.config/quickshell/ii/services/Cliphist.qml +++ b/.config/quickshell/ii/services/Cliphist.qml @@ -21,6 +21,9 @@ Singleton { entry: a })) function fuzzyQuery(search: string): var { + if (search.trim() === "") { + return entries; + } if (root.sloppySearch) { const results = entries.slice(0, 100).map(str => ({ entry: str,