From 8349d82179dcfe465e8aa0a56702c906046b02ed Mon Sep 17 00:00:00 2001 From: Gregory Anders Date: Mon, 6 Nov 2023 13:10:23 -0600 Subject: [PATCH] macos: complete clipboard request even when clipboard is empty --- src/apprt/embedded.zig | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/apprt/embedded.zig b/src/apprt/embedded.zig index 8b361f573..dd9556ccb 100644 --- a/src/apprt/embedded.zig +++ b/src/apprt/embedded.zig @@ -480,12 +480,6 @@ pub const Surface = struct { ) void { const alloc = self.app.core_app.alloc; - // If there is no string, then we don't do anything and complete. - if (str.len == 0) { - alloc.destroy(state); - return; - } - // Attempt to complete the request, but if its unsafe we may request // confirmation. self.core_surface.completeClipboardRequest(