mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 00:06:09 +03:00
Merge pull request #826 from gpanders/empty-clipboard
macos: complete clipboard request even when clipboard is empty
This commit is contained in:
@ -480,12 +480,6 @@ pub const Surface = struct {
|
|||||||
) void {
|
) void {
|
||||||
const alloc = self.app.core_app.alloc;
|
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
|
// Attempt to complete the request, but if its unsafe we may request
|
||||||
// confirmation.
|
// confirmation.
|
||||||
self.core_surface.completeClipboardRequest(
|
self.core_surface.completeClipboardRequest(
|
||||||
|
Reference in New Issue
Block a user