Update macos/Sources/Features/Terminal/TerminalController.swift

Co-authored-by: Gregory Anders <8965202+gpanders@users.noreply.github.com>
This commit is contained in:
Mitchell Hashimoto
2023-10-30 18:26:44 -07:00
committed by GitHub
parent db309a0b61
commit 9d3a4d2a58

View File

@ -17,7 +17,7 @@ class TerminalController: NSWindowController, NSWindowDelegate, TerminalViewDele
@Published var surfaceTree: Ghostty.SplitNode? = nil {
didSet {
// If our surface tree becomes nil then it means all our surfaces
// have closed, so we also cloud the window.
// have closed, so we also close the window.
if (surfaceTree == nil) { lastSurfaceDidClose() }
}
}