Merge pull request #821 from gpanders/macos-split-close-fixup

macos: set id on nested terminal splits
This commit is contained in:
Mitchell Hashimoto
2023-11-05 17:43:02 -08:00
committed by GitHub

View File

@ -345,6 +345,7 @@ extension Ghostty {
let neighbors: SplitNode.Neighbors let neighbors: SplitNode.Neighbors
var body: some View { var body: some View {
Group {
switch (node) { switch (node) {
case nil: case nil:
Color(.clear) Color(.clear)
@ -373,6 +374,8 @@ extension Ghostty {
) )
} }
} }
.id(node)
}
} }
/// When changing the split state, or going full screen (native or non), the terminal view /// When changing the split state, or going full screen (native or non), the terminal view