From c01ecc4532618063323b033bddce1fe828a83ac0 Mon Sep 17 00:00:00 2001 From: austinpower1258 Date: Tue, 24 Feb 2026 15:49:55 -0800 Subject: [PATCH] Guard terminal forceRefresh when surface is nil --- Sources/GhosttyTerminalView.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/GhosttyTerminalView.swift b/Sources/GhosttyTerminalView.swift index e18487f8..022c5268 100644 --- a/Sources/GhosttyTerminalView.swift +++ b/Sources/GhosttyTerminalView.swift @@ -1988,6 +1988,7 @@ final class TerminalSurface: Identifiable, ObservableObject { } view.forceRefreshSurface() + guard let surface = surface else { return } ghostty_surface_refresh(surface) }