From 55be8a30759ee5d12628c631af94a57d582281a4 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Thu, 16 Jan 2025 15:57:34 -0500 Subject: [PATCH] Return immediately after clearing clipboard (useful for GUI/TUI clients) --- core/copy.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/copy.go b/core/copy.go index 0ae95fb..0dfc382 100644 --- a/core/copy.go +++ b/core/copy.go @@ -88,6 +88,7 @@ func clipClearProcess(assignedContents string) { // if assignedContents is empty, clear the clipboard immediately and unconditionally if assignedContents == "" { clearClipboard() + return } // wait 30 seconds before checking clipboard contents