From c78226bfaea1e03107d91c4e27c836f9d8143a7b Mon Sep 17 00:00:00 2001 From: Lukas <134181853+bo2themax@users.noreply.github.com> Date: Thu, 23 Jul 2026 22:21:45 +0200 Subject: [PATCH] macOS: fix Main actor-isolated static property 'find' warnings --- macos/Sources/Ghostty/Surface View/OSSurfaceView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macos/Sources/Ghostty/Surface View/OSSurfaceView.swift b/macos/Sources/Ghostty/Surface View/OSSurfaceView.swift index a85f9d626..9f2926c8b 100644 --- a/macos/Sources/Ghostty/Surface View/OSSurfaceView.swift +++ b/macos/Sources/Ghostty/Surface View/OSSurfaceView.swift @@ -138,9 +138,9 @@ extension Ghostty.OSSurfaceView { init( from startSearch: Ghostty.Action.StartSearch, - pasteboard: NSPasteboard = NSPasteboard.find + pasteboard: NSPasteboard? = nil ) { - self.pasteboard = pasteboard + self.pasteboard = pasteboard ?? .find if let needle = startSearch.needle, !needle.isEmpty { setNeedle(needle) writePasteboardNeedle()