macos: unsplit window shouldn't allow split zooming (#7565)

This was always the case, and is a recent regression from the SplitTree
rework. This brings it back to the previous behavior.
pull/7566/head
Mitchell Hashimoto 2025-06-10 12:21:58 -07:00 committed by GitHub
commit 95a04eebc8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -562,6 +562,9 @@ class BaseTerminalController: NSWindowController,
// Already zoomed, unzoom it
surfaceTree = SplitTree(root: surfaceTree.root, zoomed: nil)
} else {
// We require that the split tree have splits
guard surfaceTree.isSplit else { return }
// Not zoomed or different node zoomed, zoom this node
surfaceTree = SplitTree(root: surfaceTree.root, zoomed: targetNode)
}